Skip to content

Latest commit

 

History

History
13 lines (11 loc) · 1.04 KB

CLAUDE.md

File metadata and controls

13 lines (11 loc) · 1.04 KB

Numerical Toolbox — Claude Instructions

Canonical rules: AGENTS.md (shared with Copilot). Code-file specifics: .github/instructions/. Deployment recipe: roadmap/DEPLOYMENT.md.

Essentials (full detail in AGENTS.md):

  • No heap — bounded containers / std::array / std::optional; no recursion; tests too.
  • Float-only — generic template<typename T> + static_assert(std::is_floating_point_v<T>); instantiate/test float; no Q15/Q31.
  • Embedded — no #pragma GCC optimize / optimize attribute (they block inlining); the consumer sets optimization flags per TU; OPTIMIZE_FOR_SPEED (forced inlining) on hot paths.
  • No comments (except license/NOLINT). Allman braces, brace-init, PascalCase/camelCase.
  • Tests — TEST_F on float, StrictMock only, never plain TEST(), no redundant cases.
  • No exceptions — std::optional/status enums; interfaces get a protected: non-virtual ~I() = default, never a virtual destructor.
  • Be terse — minimal prose; report file paths + pass/fail.