chore: correct cross-package drift in blas/base README and package.json files#13063
Draft
Planeshifter wants to merge 7 commits into
Draft
chore: correct cross-package drift in blas/base README and package.json files#13063Planeshifter wants to merge 7 commits into
blas/base README and package.json files#13063Planeshifter wants to merge 7 commits into
Conversation
Add the conventional `## Examples` heading inside the `<section class="examples">` block. Present in 105/107 (98%) of sibling packages in `@stdlib/blas/base`; absence here appears to be an oversight shared with the `srotg` twin.
Add the conventional `## Examples` heading inside the `<section class="examples">` block. Present in 105/107 (98%) of sibling packages in `@stdlib/blas/base`; absence here mirrors the `drotg` twin.
Add `ndarray` to the keywords array. Present in 99/107 (93%) of sibling packages and in every level-1 strided-vector sibling (dasum, daxpy, dswap, ...); `dnrm2` ships an `.ndarray` method so the keyword applies.
Add `ndarray` to the keywords array. Present in 99/107 (93%) of sibling packages and in single-precision peers (sasum, saxpy, sswap); `snrm2` ships an `.ndarray` method so the keyword applies.
Add `ndarray` to the keywords array. Present in 99/107 (93%) of sibling packages and in the generic `gasum` peer; `gnrm2` ships an `.ndarray` method so the keyword applies.
Add `ndarray` to the keywords array. Present in 99/107 (93%) of sibling packages and in the typed `dswap`/`sswap` peers; `gswap` ships an `.ndarray` method so the keyword applies.
Add the empty `<section class="related"></section>` placeholder block before the links section, matching the convention used by 106/107 (99%) of sibling packages in `@stdlib/blas/base`. The scaffold is the hook that the related-links auto-populator keys off; the inner content remains generator-owned.
Contributor
Coverage Report
The above coverage report was generated for the changes in this PR. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This pull request:
@stdlib/blas/base, surfaced by majority-vote analysis across the 107 non-namespace-aggregator leaf packages in the namespace.Namespace summary
assert,ndarray, andwasmsub-namespace aggregator packages were excluded since they aggregate other packages rather than implement a routine).package.jsontop-level /scripts/directories/keywordsshape, README##/###section list,manifest.jsonshape,test//benchmark//examples/filename sets.package.jsontop-level key and everydirectoriessub-key (100%); four universalkeywords(stdlib,blas,array,ndarray); the canonical file tree (README.md,package.json,lib/{index,main}.js,test/test.js,examples/index.js,docs/types/{index.d.ts,test.ts},docs/repl.txt,benchmark/benchmark.js); the canonical## Usage/## Notes/## ExamplesREADME sections.__stdlib__config block (60% prevalence, split evenly between{}and{"wasm": false});gypfile(47%);browser(40%); the## Notesheading on enum-utility packages (intentionally empty); the## See Alsocontent (auto-populated).Per outlier package
blas/base/drotgREADME.mdopens the<section class="examples">block but jumps straight to the code fence without the## Examplesheading. The heading is present in 105/107 (98%) of siblings — including the analogousdasum,ccopy,dswapREADMEs — and is a structural template element, not a content judgment. Heading restored.blas/base/srotgSame drift as
drotg: the<section class="examples">block is missing the## Examplesheading present in 105/107 (98%) of siblings. Same restoration applied.blas/base/dnrm2package.jsonkeywords lackedndarraydespite the package shipping a working.ndarraymethod (lib/ndarray.js,c_dnrm2_ndarray). The keyword is present in 99/107 (93%) of siblings and in every level-1 strided-vector peer (dasum,daxpy,dswap, ...). Keyword added.blas/base/snrm2Same omission as
dnrm2:.ndarraymethod ships butndarraywas missing from the keywords. Present in single-precision peers (sasum,saxpy,sswap). Keyword added.blas/base/gnrm2Same omission for the generic variant:
.ndarraymethod ships, peergasumcarriesndarray. Keyword added.blas/base/gswapSame omission for the generic swap:
.ndarraymethod ships, typed peersdswapandsswapcarryndarray. Keyword added.blas/base/zcopyREADME.mdjumped directly from<!-- /.c -->to the links section, with no<section class="related"></section>scaffold. The empty scaffold is the hook the related-links auto-populator keys off, and it is present in 106/107 (99%) of siblings —ccopy,dcopy,scopyall carry it. Only the empty scaffold (plus the surrounding HTML comments) was added; the inner content remains generator-owned.Related Issues
None.
Questions
No.
Other
Validation
package.jsonshape, README section list,manifest.jsonshape, andtest//benchmark//examples/filenames; majority computed at the 75% threshold (⌈107 × 0.75⌉ = 81).confirmed-drift/safe-to-fixfrom every reviewer and advanced.Deliberately excluded from the run:
__stdlib__config block split (60% prevalence, no clear majority shape).benchmark/benchmark.jsindgemm/sgemm/ggemm: these packages benchmark across 40 parameter-combination files instead, by design.benchmark/benchmark.jsanddocs/repl.txtinshared/xerbla: these are utility packages (shared include dir, BLAS error handler) with no public computation to benchmark or REPL-document.## Notesheading on enum-utility packages (diagonal-types,layout-resolve-str, ...): the<section class="notes">element is present but intentionally empty, which is the convention for the enum family.<!-- <related-links> -->placeholder in the links section (only 25% prevalence — no majority).## See Alsocontent in<section class="related">: auto-populated by the related-links generator, exempt from manual edits.A local report with the full audit trail (feature distributions, dropped candidates and rationale, namespace random seed) lives at
~/drift-reports/drift-blas-base-2026-06-22.md.Checklist
AI Assistance
If you answered "yes" above, how did you use AI assistance?
Disclosure
This PR was authored by Claude Code running as a scheduled cross-package drift-detection routine: structural features were extracted across all 107 non-aggregator leaf packages of
@stdlib/blas/base, deviations from the ≥75% majority pattern were surfaced, three reviewer agents (semantic, cross-reference, structural) validated each candidate fix in parallel, and the resulting one-line README andpackage.jsoncorrections were applied per-package. A human will audit and promote the PR out of draft.@stdlib-js/reviewers
Generated by Claude Code