Skip to content

feat: add C implementation for blas/ext/base/ndarray/dcusumkbn2 - #15953

Open
AtharvaPatange wants to merge 1 commit into
stdlib-js:developfrom
AtharvaPatange:feat/blas-dcusumkbn2
Open

AtharvaPatange wants to merge 1 commit into
stdlib-js:developfrom
AtharvaPatange:feat/blas-dcusumkbn2

Conversation

@AtharvaPatange

Copy link
Copy Markdown
Contributor

Part of #14819.

Description

What is the purpose of this pull request?

This pull request:

  • adds a C implementation for @stdlib/blas/ext/base/ndarray/dcusumkbn2.
  • adds a Node-API addon and tryRequire dispatcher with a fallback to the
    JavaScript implementation when the native addon is unavailable.
  • adds JavaScript and C benchmarks, along with a C example.

Related Issues

Does this pull request have any related issues?

This pull request has the following related issues:

Questions

Any questions for reviewers of this pull request?

No.

Other

Any other information relevant to this pull request?

No.

Checklist

Please ensure the following tasks are completed before submitting this pull request.

AI Assistance

When authoring the changes proposed in this PR, did you use any kind of 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

AI assistance was used for reviewing changes and researching repository conventions.

I've checked each file and verified the result locally: the addon compiles without warnings, both the JavaScript and native test suites pass with the native results matching the JavaScript implementation, the C example and benchmarks run correctly, and ESLint reports no errors. Happy to make any adjustments.


@stdlib-js/reviewers

@AtharvaPatange
AtharvaPatange requested a review from a team October 7, 2026 09:44
@stdlib-bot stdlib-bot added BLAS Issue or pull request related to Basic Linear Algebra Subprograms (BLAS). Needs Review A pull request which needs code review. labels Oct 7, 2026
@stdlib-bot

Copy link
Copy Markdown
Contributor

Coverage Report

Package Statements Branches Functions Lines
blas/ext/base/ndarray/dcusumkbn2 $\\color{green}214/214$
$\\color{green}+100.00\\%$
$\\color{green}7/7$
$\\color{green}+100.00\\%$
$\\color{green}2/2$
$\\color{green}+100.00\\%$
$\\color{green}214/214$
$\\color{green}+100.00\\%$

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

This branch has not been deployed

No deployments
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). Needs Review A pull request which needs code review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants