Skip to content

docs: update x JSDoc type in @stdlib/blas/ext/sum#12645

Merged
kgryte merged 1 commit into
developfrom
claude/practical-goodall-pbS3Q
Jun 7, 2026
Merged

docs: update x JSDoc type in @stdlib/blas/ext/sum#12645
kgryte merged 1 commit into
developfrom
claude/practical-goodall-pbS3Q

Conversation

@Planeshifter
Copy link
Copy Markdown
Member

Description

@stdlib/blas/ext/sum: widen the JSDoc @param type for x in lib/main.js from {ndarray} to {ndarrayLike}. sum was the sole outlier among the 12 blas/ext/* sibling packages whose primary function takes x as its first parameter — 11/12 (~92%) use {ndarrayLike}. The narrower type also contradicted this package's own @throws clause two lines below, which states that x "must be an ndarray-like object", and the underlying ndarray/base/unary-reduce-strided1d-dispatch-factory it wraps documents its input parameter the same way. Pure documentation change; no source, test, or behavioral changes.

Related Issues

This pull request has no related issues.

Questions

No.

Other

No.

Checklist

AI Assistance

  • Yes
  • No

If you answered "yes" above, how did you use AI assistance?

  • Code generation (e.g., when writing an implementation or fixing a bug)
  • Test/benchmark generation
  • Documentation (including examples)
  • Research and understanding

Disclosure

This PR was authored by Claude Code via the cross-package drift-detection routine: structural and semantic features were extracted from every direct-child leaf member of @stdlib/blas/ext, majority patterns were computed at a 75% conformance threshold, and two independent opus validation agents (semantic-review, cross-reference) confirmed the candidate before any file was edited. The diff is a single JSDoc-type-tag change on one line.


@stdlib-js/reviewers


Generated by Claude Code

Change the JSDoc `@param` annotation for `x` from `{ndarray}` to
`{ndarrayLike}` in `lib/main.js`. The bare `{ndarray}` type was the
sole outlier among the 12 `@stdlib/blas/ext/*` sibling packages whose
primary function accepts `x` as its first parameter: 11/12 (~92%)
use `{ndarrayLike}`. The narrower type also contradicted this
package's own `@throws` clause two lines below, which states that
`x` "must be an ndarray-like object".
@stdlib-bot stdlib-bot added the BLAS Issue or pull request related to Basic Linear Algebra Subprograms (BLAS). label Jun 6, 2026
@stdlib-bot
Copy link
Copy Markdown
Contributor

Coverage Report

Package Statements Branches Functions Lines
blas/ext/sum $\color{green}164/164$
$\color{green}+100.00\%$
$\color{green}2/2$
$\color{green}+100.00\%$
$\color{green}0/0$
$\color{green}+100.00\%$
$\color{green}164/164$
$\color{green}+100.00\%$

The above coverage report was generated for the changes in this PR.

@kgryte kgryte added the Documentation Improvements, additions, or changes to documentation. label Jun 7, 2026
@kgryte kgryte marked this pull request as ready for review June 7, 2026 00:35
@kgryte kgryte requested a review from a team June 7, 2026 00:35
@stdlib-bot stdlib-bot added the Needs Review A pull request which needs code review. label Jun 7, 2026
@kgryte kgryte changed the title docs: align x JSDoc type in @stdlib/blas/ext/sum docs: update x JSDoc type in @stdlib/blas/ext/sum Jun 7, 2026
@kgryte kgryte merged commit 9cfa05c into develop Jun 7, 2026
69 checks passed
@kgryte kgryte deleted the claude/practical-goodall-pbS3Q branch June 7, 2026 00:35
@kgryte kgryte removed the Needs Review A pull request which needs code review. label Jun 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

BLAS Issue or pull request related to Basic Linear Algebra Subprograms (BLAS). Documentation Improvements, additions, or changes to documentation.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants