Docs: Promote four conventions from the local Claude notes into the shared guides libeigen/eigen!2983 Co-authored-by: Rasmus Munk Larsen <rmlarsen@gmail.com>
diff --git a/.agents/conventions.md b/.agents/conventions.md index 99e3edd..729dda0 100644 --- a/.agents/conventions.md +++ b/.agents/conventions.md
@@ -41,6 +41,13 @@ - `std::span`, CTAD, fold expressions, `constinit`, and later library additions are unavailable outside guarded backends with a documented newer requirement (the SYCL configurations force C++17, for example). +## Hot paths + +Code added to a hot inner loop grows the enclosing function and can displace it from the instruction cache even when +an `EIGEN_PREDICT_FALSE` guard keeps it from executing. Watch for that when adding a check or a fallback to such a +loop; where a benchmark shows the cost, moving the cold path into an `EIGEN_DONT_INLINE` helper is one way to +recover it. + ## Comments The comment rules in the repository-root `AGENTS.md` are enforced in review and are the most repeated style finding
diff --git a/.agents/review-response.md b/.agents/review-response.md index 592ee56..627ced4 100644 --- a/.agents/review-response.md +++ b/.agents/review-response.md
@@ -13,6 +13,10 @@ response within the comment's scope; a defect it exposes in shared code belongs in its own commit or merge request. After each round, re-verify that the merge request description and commit messages still describe the current head. +[`.coderabbit.yaml`](../.coderabbit.yaml) holds the path-specific instructions the CodeRabbit review bot applies when +it is enabled on the project; they are the bot's rendering of these conventions and predict what an automated review +will flag. + GitLab renders KaTeX in merge request descriptions and comments. Typeset real mathematics — bounds, recurrences, identities, error terms — as math: inline with dollar-backtick delimiters (``$`h_j = \varepsilon\,\max(|x_j|, 1)`$``; bare `$...$` does not render on gitlab.com), display equations in a fenced ` ```math ` block. Keep identifiers that
diff --git a/AGENTS.md b/AGENTS.md index 9951949..191208b 100644 --- a/AGENTS.md +++ b/AGENTS.md
@@ -97,6 +97,11 @@ impact: Tensor is a foundational TensorFlow dependency. Public umbrella headers are the source of truth for a module's exported internals. +The `lapack/*.f` files are vendored netlib LAPACK reference sources and are read-only here: do not edit them ad hoc, +and flag a merge request that changes one unless it is an explicit refresh from a named netlib release, in which case +check the diff against that release. Tree-wide clang-format and SPDX-tagging commits are listed in +`.git-blame-ignore-revs`; pass that file to `git blame` with `--ignore-revs-file` to see the history beneath them. + Every new source file needs accurate REUSE metadata; [`.agents/conventions.md`](.agents/conventions.md) records the required header form and the `REUSE.toml` rules for files that cannot carry an inline tag.