Skip to content

feat: add C implementation for blas/ext/base/ndarray/cxmy - #16033

Open
AtharvaPatange wants to merge 7 commits into
stdlib-js:developfrom
AtharvaPatange:feat/blas-cxmy
Open

AtharvaPatange wants to merge 7 commits into
stdlib-js:developfrom
AtharvaPatange:feat/blas-cxmy

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/cxmy.
  • 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 10, 2026 06:52
@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 10, 2026
@stdlib-bot

stdlib-bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

Coverage Report

Package Statements Branches Functions Lines
blas/ext/base/ndarray/cxmy $\\color{green}192/192$
$\\color{green}+0.00\\%$
$\\color{green}7/7$
$\\color{green}+0.00\\%$
$\\color{green}2/2$
$\\color{green}+0.00\\%$
$\\color{green}192/192$
$\\color{green}+0.00\\%$

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

Comment thread lib/node_modules/@stdlib/blas/ext/base/ndarray/cxmy/manifest.json
Comment thread lib/node_modules/@stdlib/blas/ext/base/ndarray/cxmy/README.md
Comment thread lib/node_modules/@stdlib/blas/ext/base/ndarray/cxmy/examples/c/example.c Outdated
Comment thread lib/node_modules/@stdlib/blas/ext/base/ndarray/cxmy/README.md Outdated
Comment thread lib/node_modules/@stdlib/blas/ext/base/ndarray/cxmy/README.md Outdated
@ujjwalv01

Copy link
Copy Markdown
Member

Left a few suggestions. Mind making these changes?

@ujjwalv01 ujjwalv01 added Needs Changes Pull request which needs changes before being merged. and removed Needs Review A pull request which needs code review. labels Oct 10, 2026
AtharvaPatange and others added 6 commits October 10, 2026 23:23
Co-authored-by: Ujjwal Verma <ujjwalverma010305@gmail.com>
Signed-off-by: Atharva Patange <164712914+AtharvaPatange@users.noreply.github.com>
Co-authored-by: Ujjwal Verma <ujjwalverma010305@gmail.com>
Signed-off-by: Atharva Patange <164712914+AtharvaPatange@users.noreply.github.com>
…/example.c

Co-authored-by: Ujjwal Verma <ujjwalverma010305@gmail.com>
Signed-off-by: Atharva Patange <164712914+AtharvaPatange@users.noreply.github.com>
Co-authored-by: Ujjwal Verma <ujjwalverma010305@gmail.com>
Signed-off-by: Atharva Patange <164712914+AtharvaPatange@users.noreply.github.com>
…c/benchmark.length.c

Co-authored-by: Ujjwal Verma <ujjwalverma010305@gmail.com>
Signed-off-by: Atharva Patange <164712914+AtharvaPatange@users.noreply.github.com>
Co-authored-by: Ujjwal Verma <ujjwalverma010305@gmail.com>
Signed-off-by: Atharva Patange <164712914+AtharvaPatange@users.noreply.github.com>
@AtharvaPatange

Copy link
Copy Markdown
Contributor Author

Left a few suggestions. Mind making these changes?

Thanks for the detailed explanations! They helped me understand the reasoning behind the suggestions. I've made the changes accordingly.

@ujjwalv01 ujjwalv01 added Needs Review A pull request which needs code review. and removed Needs Changes Pull request which needs changes before being merged. labels Oct 10, 2026

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.

3 participants