Skip to content

feat: add C implementation for blas/ext/base/ndarray/sdiff - #16640

Open
utkarshpatwa393-sys wants to merge 6 commits into
stdlib-js:developfrom
utkarshpatwa393-sys:feat/c-impl-blas-ext-base-ndarray-sdiff
Open

utkarshpatwa393-sys wants to merge 6 commits into
stdlib-js:developfrom
utkarshpatwa393-sys:feat/c-impl-blas-ext-base-ndarray-sdiff

Conversation

@utkarshpatwa393-sys

@utkarshpatwa393-sys utkarshpatwa393-sys commented Nov 15, 2026 •

Copy link
Copy Markdown

Resolves a part of #14819.

Description

What is the purpose of this pull request?

This pull request:

  • Adds native C and Node-API add-on bindings for the single-precision discrete difference ndarray routine @stdlib/blas/ext/base/ndarray/sdiff.
  • Adds C headers (include/stdlib/blas/ext/base/ndarray/sdiff.h), C implementation (src/main.c), Node-API add-on wrapper (src/addon.c), build configuration (binding.gyp, include.gypi, manifest.json, src/Makefile), and loader dispatch (lib/native.js).
  • Adds unit tests (test/test.main.js, test/test.native.js), C benchmarks (benchmark/c/), native benchmarks (benchmark/benchmark.native.js), C example (examples/c/example.c), and TypeScript definitions (docs/types/).

Related Issues

Does this pull request have any related issues?

This pull request has the following related issues:

Reference Packages

Did the content of this pull request follow one or more existing packages? Answering is optional.

This pull request followed these packages:

  • blas/ext/base/ndarray/saxpb
  • blas/ext/base/ndarray/ssum
  • blas/ext/base/ndarray/dwxdy

What carried over from the reference(s)?

  • Package structure, Node-API add-on argument serialization/deserialization patterns, C benchmark and example formatting, and TypeScript definition typings.

What differed, or what did you have to work out yourself?

  • Multi-array discrete difference logic requiring workspace buffer allocation, prepend/append handling, and 0-d integer order k parameter handling across C and Node-API boundaries.

Questions

Any questions for reviewers of this pull request?

No.

Other

Any other information relevant to this pull request? This may include screenshots, references, and/or implementation notes.

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

If you answered "yes" to using AI assistance, please provide a short disclosure indicating how you used AI assistance. This helps reviewers determine how much scrutiny to apply when reviewing your contribution. Example disclosures: "This PR was written primarily by Claude Code." or "I consulted ChatGPT to understand the codebase, but the proposed changes were fully authored manually by myself.".

I consulted AI assistance for understanding codebase conventions, cross-referencing package documentation styles, and structuring the PR description per the template, but all implementation code, C bindings, and test files were authored and verified directly against stdlib conventions.


@stdlib-js/reviewers

Signed-off-by: Utkarsh patwa <utkarshpatwa393@gmail.com>
@utkarshpatwa393-sys
utkarshpatwa393-sys requested a review from a team November 15, 2026 10:33
@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. First-time Contributor A pull request from a contributor who has never previously committed to the project repository. labels Nov 15, 2026
Signed-off-by: Utkarsh patwa <utkarshpatwa393@gmail.com>
Signed-off-by: Utkarsh patwa <utkarshpatwa393@gmail.com>
Signed-off-by: Utkarsh patwa <utkarshpatwa393@gmail.com>
@stdlib-bot

stdlib-bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Coverage Report

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

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

Comment on lines +93 to +94
static double random_uniform( const double min, const double max ) {
double v = (double)rand() / ( (double)RAND_MAX + 1.0 );

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For single precision, random_uniform should use float, as in saxpb.

Suggested change
static double random_uniform( const double min, const double max ) {
double v = (double)rand() / ( (double)RAND_MAX + 1.0 );
static float random_uniform( const float min, const float max ) {
float v = (float)rand() / ( (float)RAND_MAX + 1.0f );

Comment on lines +110 to +126
int8_t submodes[ 1 ];
int64_t strides[ 1 ];
struct ndarray *prepend;
int64_t shapePrepend[ 1 ];
int64_t shapeOut[ 1 ];
int64_t shapeX[ 1 ];
struct ndarray *append;
int64_t nsubmodes;
struct ndarray *out;
float *dataPrepend;
float *dataAppend;
float *dataWorkspace;
int32_t valK;
int32_t *dataK;
int64_t offset;
struct ndarray *k;
struct ndarray *x;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Declarations should be ordered by length, longest first. Also, dataPrepend, dataAppend and dataK each hold a single element, so they don't need malloc (see adata[ 1 ] in saxpb). This needs to be applied together with the suggestions below.

Suggested change
int8_t submodes[ 1 ];
int64_t strides[ 1 ];
struct ndarray *prepend;
int64_t shapePrepend[ 1 ];
int64_t shapeOut[ 1 ];
int64_t shapeX[ 1 ];
struct ndarray *append;
int64_t nsubmodes;
struct ndarray *out;
float *dataPrepend;
float *dataAppend;
float *dataWorkspace;
int32_t valK;
int32_t *dataK;
int64_t offset;
struct ndarray *k;
struct ndarray *x;
int64_t shapePrepend[ 1 ];
struct ndarray *prepend;
float dataPrepend[ 1 ];
struct ndarray *append;
float dataAppend[ 1 ];
int64_t shapeOut[ 1 ];
int64_t kstrides[ 1 ];
float *dataWorkspace;
int8_t submodes[ 1 ];
int64_t strides[ 1 ];
int64_t shapeX[ 1 ];
struct ndarray *out;
int32_t dataK[ 1 ];
int64_t nsubmodes;
struct ndarray *k;
struct ndarray *x;
int64_t offset;

shapePrepend[ 0 ] = 1;
shapeOut[ 0 ] = len + 1;
strides[ 0 ] = STDLIB_NDARRAY_FLOAT32_BYTES_PER_ELEMENT;
int64_t kstrides[] = { 0 };

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Declare it with the others above, and only assign here.

Suggested change
int64_t kstrides[] = { 0 };
kstrides[ 0 ] = 0;

Comment on lines +147 to +163
dataPrepend = (float *)malloc( 1 * sizeof( float ) );
dataAppend = (float *)malloc( 1 * sizeof( float ) );
dataOut = (float *)malloc( ( len + 1 ) * sizeof( float ) );
dataWorkspace = (float *)malloc( ( len + 1 ) * sizeof( float ) );
dataK = (int32_t *)malloc( 1 * sizeof( int32_t ) );

valK = 1;
dataK[ 0 ] = valK;
dataPrepend[ 0 ] = 1.0;
dataAppend[ 0 ] = 11.0;

for ( i = 0; i < len; i++ ) {
dataX[ i ] = random_uniform( -100.0, 100.0 );
}
for ( i = 0; i < len + 1; i++ ) {
dataOut[ i ] = 0.0;
dataWorkspace[ i ] = 0.0;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
dataPrepend = (float *)malloc( 1 * sizeof( float ) );
dataAppend = (float *)malloc( 1 * sizeof( float ) );
dataOut = (float *)malloc( ( len + 1 ) * sizeof( float ) );
dataWorkspace = (float *)malloc( ( len + 1 ) * sizeof( float ) );
dataK = (int32_t *)malloc( 1 * sizeof( int32_t ) );
valK = 1;
dataK[ 0 ] = valK;
dataPrepend[ 0 ] = 1.0;
dataAppend[ 0 ] = 11.0;
for ( i = 0; i < len; i++ ) {
dataX[ i ] = random_uniform( -100.0, 100.0 );
}
for ( i = 0; i < len + 1; i++ ) {
dataOut[ i ] = 0.0;
dataWorkspace[ i ] = 0.0;
dataOut = (float *)malloc( ( len + 1 ) * sizeof( float ) );
dataWorkspace = (float *)malloc( ( len + 1 ) * sizeof( float ) );
dataK[ 0 ] = 1;
dataPrepend[ 0 ] = 1.0f;
dataAppend[ 0 ] = 11.0f;
for ( i = 0; i < len; i++ ) {
dataX[ i ] = random_uniform( -100.0f, 100.0f );
}
for ( i = 0; i < len + 1; i++ ) {
dataOut[ i ] = 0.0f;
dataWorkspace[ i ] = 0.0f;

// cppcheck-suppress invalidPointerCast
workspace = stdlib_ndarray_allocate( STDLIB_NDARRAY_FLOAT32, (uint8_t *)dataWorkspace, ndims, shapeOut, strides, offset, order, imode, nsubmodes, submodes );

// 0-dimensional scalar ndarray for k:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// 0-dimensional scalar ndarray for k:

Comment on lines +211 to +216
free( dataPrepend );
free( dataAppend );
free( dataOut );
free( dataWorkspace );
free( dataK );

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
free( dataPrepend );
free( dataAppend );
free( dataOut );
free( dataWorkspace );
free( dataK );
free( dataOut );
free( dataWorkspace );

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since lib/index.js now loads the native add-on when it's available, the JS benchmark should require main.js directly, as merged packages do (e.g., ssum).

Suggested change
var sdiff = require( './../lib/main.js' );

for ( i = min; i <= max; i++ ) {
len = pow( 10, i );
f = createBenchmark( len );
bench( format( '%s:len=%d', pkg, len ), f );

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The native benchmark needs the ::native label and opts. Otherwise it isn't skipped when the add-on isn't built, and its name is the same as the JS benchmark's. See dsum.

Suggested change
bench( format( '%s:len=%d', pkg, len ), f );
bench( format( '%s::native:len=%d', pkg, len ), opts, f );

Comment on lines +31 to +35
const float dataX[] = { 2.0, 4.0, 6.0, 8.0, 10.0 };
const float dataPrepend[] = { 1.0 };
const float dataAppend[] = { 11.0 };
float dataOut[] = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 };
float dataW[] = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 };

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use float literals for float buffers, as in ssum. The README already uses them.

Suggested change
const float dataX[] = { 2.0, 4.0, 6.0, 8.0, 10.0 };
const float dataPrepend[] = { 1.0 };
const float dataAppend[] = { 11.0 };
float dataOut[] = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 };
float dataW[] = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 };
const float dataX[] = { 2.0f, 4.0f, 6.0f, 8.0f, 10.0f };
const float dataPrepend[] = { 1.0f };
const float dataAppend[] = { 11.0f };
float dataOut[] = { 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f };
float dataW[] = { 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f };

# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`)
# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`)
# @param {string} [SOURCE_FILES] - list of source files
# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar`)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar`)
# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`)

Comment on lines +65 to +86
var workspace;
var prepend;
var append;
var out;
var x;
var k;

x = arrays[ 0 ];
prepend = arrays[ 1 ];
append = arrays[ 2 ];
out = arrays[ 3 ];
workspace = arrays[ 4 ];
k = arrays[ 5 ];

addon(
getData( x ), serialize( x ),
getData( prepend ), serialize( prepend ),
getData( append ), serialize( append ),
getData( out ), serialize( out ),
getData( workspace ), serialize( workspace ),
getData( k ), serialize( k )
);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Following the pattern in merged packages (e.g., dwxdy):

Suggested change
var workspace;
var prepend;
var append;
var out;
var x;
var k;
x = arrays[ 0 ];
prepend = arrays[ 1 ];
append = arrays[ 2 ];
out = arrays[ 3 ];
workspace = arrays[ 4 ];
k = arrays[ 5 ];
addon(
getData( x ), serialize( x ),
getData( prepend ), serialize( prepend ),
getData( append ), serialize( append ),
getData( out ), serialize( out ),
getData( workspace ), serialize( workspace ),
getData( k ), serialize( k )
);
var workspace = arrays[ 4 ];
var prepend = arrays[ 1 ];
var append = arrays[ 2 ];
var out = arrays[ 3 ];
var x = arrays[ 0 ];
var k = arrays[ 5 ];
addon( getData( x ), serialize( x ), getData( prepend ), serialize( prepend ), getData( append ), serialize( append ), getData( out ), serialize( out ), getData( workspace ), serialize( workspace ), getData( k ), serialize( k ) ); // eslint-disable-line max-len

Comment on lines +47 to +48
int32_t k;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same layout as daxpb.

Suggested change
int32_t k;
int32_t k;

"dependencies": [
"@stdlib/blas/base/shared",
"@stdlib/blas/ext/base/sdiff",
"@stdlib/blas/base/scopy",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

scopy isn't used directly in src/main.c. It's already pulled in through @stdlib/blas/ext/base/sdiff. Apply same suggestion on on L64, L86 and L108

Suggested change
"@stdlib/blas/base/scopy",

int64_t shapeOut[] = { 6 };

// Specify the array strides:
int64_t strides[] = { STDLIB_NDARRAY_FLOAT32_BYTES_PER_ELEMENT };

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0-d ndarrays are allocated with a zero-stride array and the submodes, as in saxpb.

Suggested change
int64_t strides[] = { STDLIB_NDARRAY_FLOAT32_BYTES_PER_ELEMENT };
int64_t strides[] = { STDLIB_NDARRAY_FLOAT32_BYTES_PER_ELEMENT };
int64_t kstrides[] = { 0 };

struct ndarray *append = stdlib_ndarray_allocate( STDLIB_NDARRAY_FLOAT32, (uint8_t *)dataAppend, ndims, shapePrepend, strides, offset, order, imode, nsubmodes, submodes );
struct ndarray *out = stdlib_ndarray_allocate( STDLIB_NDARRAY_FLOAT32, (uint8_t *)dataOut, ndims, shapeOut, strides, offset, order, imode, nsubmodes, submodes );
struct ndarray *w = stdlib_ndarray_allocate( STDLIB_NDARRAY_FLOAT32, (uint8_t *)dataW, ndims, shapeOut, strides, offset, order, imode, nsubmodes, submodes );
struct ndarray *k = stdlib_ndarray_allocate( STDLIB_NDARRAY_INT32, (uint8_t *)dataK, 0, NULL, NULL, 0, order, imode, 0, NULL );

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
struct ndarray *k = stdlib_ndarray_allocate( STDLIB_NDARRAY_INT32, (uint8_t *)dataK, 0, NULL, NULL, 0, order, imode, 0, NULL );
struct ndarray *k = stdlib_ndarray_allocate( STDLIB_NDARRAY_INT32, (uint8_t *)dataK, 0, NULL, kstrides, 0, order, imode, nsubmodes, submodes );

int64_t shapeOut[] = { 6 };

// Specify the array strides:
int64_t strides[] = { STDLIB_NDARRAY_FLOAT32_BYTES_PER_ELEMENT };

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The README example should match examples/c/example.c exactly.

Suggested change
int64_t strides[] = { STDLIB_NDARRAY_FLOAT32_BYTES_PER_ELEMENT };
int64_t strides[] = { STDLIB_NDARRAY_FLOAT32_BYTES_PER_ELEMENT };
int64_t kstrides[] = { 0 };

Comment on lines +298 to +303
struct ndarray *x = stdlib_ndarray_allocate( STDLIB_NDARRAY_FLOAT32, (uint8_t *)dataX, ndims, shapeX, strides, offset, order, imode, nsubmodes, submodes );
struct ndarray *prepend = stdlib_ndarray_allocate( STDLIB_NDARRAY_FLOAT32, (uint8_t *)dataPrepend, ndims, shapePrepend, strides, offset, order, imode, nsubmodes, submodes );
struct ndarray *append = stdlib_ndarray_allocate( STDLIB_NDARRAY_FLOAT32, (uint8_t *)dataAppend, ndims, shapePrepend, strides, offset, order, imode, nsubmodes, submodes );
struct ndarray *out = stdlib_ndarray_allocate( STDLIB_NDARRAY_FLOAT32, (uint8_t *)dataOut, ndims, shapeOut, strides, offset, order, imode, nsubmodes, submodes );
struct ndarray *w = stdlib_ndarray_allocate( STDLIB_NDARRAY_FLOAT32, (uint8_t *)dataW, ndims, shapeOut, strides, offset, order, imode, nsubmodes, submodes );
struct ndarray *k = stdlib_ndarray_allocate( STDLIB_NDARRAY_INT32, (uint8_t *)dataK, 0, NULL, NULL, 0, order, imode, 0, NULL );

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
struct ndarray *x = stdlib_ndarray_allocate( STDLIB_NDARRAY_FLOAT32, (uint8_t *)dataX, ndims, shapeX, strides, offset, order, imode, nsubmodes, submodes );
struct ndarray *prepend = stdlib_ndarray_allocate( STDLIB_NDARRAY_FLOAT32, (uint8_t *)dataPrepend, ndims, shapePrepend, strides, offset, order, imode, nsubmodes, submodes );
struct ndarray *append = stdlib_ndarray_allocate( STDLIB_NDARRAY_FLOAT32, (uint8_t *)dataAppend, ndims, shapePrepend, strides, offset, order, imode, nsubmodes, submodes );
struct ndarray *out = stdlib_ndarray_allocate( STDLIB_NDARRAY_FLOAT32, (uint8_t *)dataOut, ndims, shapeOut, strides, offset, order, imode, nsubmodes, submodes );
struct ndarray *w = stdlib_ndarray_allocate( STDLIB_NDARRAY_FLOAT32, (uint8_t *)dataW, ndims, shapeOut, strides, offset, order, imode, nsubmodes, submodes );
struct ndarray *k = stdlib_ndarray_allocate( STDLIB_NDARRAY_INT32, (uint8_t *)dataK, 0, NULL, NULL, 0, order, imode, 0, NULL );
struct ndarray *x = stdlib_ndarray_allocate( STDLIB_NDARRAY_FLOAT32, (uint8_t *)dataX, ndims, shapeX, strides, offset, order, imode, nsubmodes, submodes );
struct ndarray *prepend = stdlib_ndarray_allocate( STDLIB_NDARRAY_FLOAT32, (uint8_t *)dataPrepend, ndims, shapePrepend, strides, offset, order, imode, nsubmodes, submodes );
struct ndarray *append = stdlib_ndarray_allocate( STDLIB_NDARRAY_FLOAT32, (uint8_t *)dataAppend, ndims, shapePrepend, strides, offset, order, imode, nsubmodes, submodes );
struct ndarray *out = stdlib_ndarray_allocate( STDLIB_NDARRAY_FLOAT32, (uint8_t *)dataOut, ndims, shapeOut, strides, offset, order, imode, nsubmodes, submodes );
struct ndarray *w = stdlib_ndarray_allocate( STDLIB_NDARRAY_FLOAT32, (uint8_t *)dataW, ndims, shapeOut, strides, offset, order, imode, nsubmodes, submodes );
struct ndarray *k = stdlib_ndarray_allocate( STDLIB_NDARRAY_INT32, (uint8_t *)dataK, 0, NULL, kstrides, 0, order, imode, nsubmodes, submodes );


// Print the result:
for ( int i = 0; i < 6; i++ ) {
printf( "out[ %i ] = %f\n", i, (double)dataOut[ i ] );

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
printf( "out[ %i ] = %f\n", i, (double)dataOut[ i ] );
printf( "out[ %i ] = %f\n", i, dataOut[ i ] );

@ujjwalv01

Copy link
Copy Markdown
Member

Also, the PR description doesn't follow the PR template. The "Related Issues", "Reference Packages", "Questions", "Other" and "AI Assistance" sections are missing. Update it too.

@ujjwalv01

Copy link
Copy Markdown
Member

@utkarshpatwa393-sys , In general, you need to pay much closer attention to how other packages are structured. Only the minimal essential changes should be present among separate similar packages.

@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 Nov 19, 2026
…enchmarks, README, and native bindings

Signed-off-by: Utkarsh patwa <utkarshpatwa393@gmail.com>
@utkarshpatwa393-sys

Copy link
Copy Markdown
Author

Hi @ujjwalv01, thank you for the detailed and constructive review!

I have addressed all the feedback in the latest commit:

  • Updated the PR description to adhere strictly to the stdlib PR template with all required sections, reference packages, and AI disclosure.
  • Updated benchmark.js to require ./../lib/main.js.
  • Added ::native label and opts to benchmark.native.js.
  • Updated C benchmarks in benchmark.length.c to use float in random_uniform, ordered declarations by length (longest first), allocated single-element buffers on the stack without dynamic mallocs, and declared kstrides alongside other declarations.
  • Updated floating point literals in examples/c/example.c to use float literals (f suffix).
  • Updated Makefile comment syntax for LIBPATH.
  • Aligned lib/native.js argument extraction and src/main.c layout with merged reference packages.
  • Removed unused @stdlib/blas/base/scopy from manifest.json.
  • Updated README.md C usage and examples with kstrides 0-d ndarray allocation matching example.c.

Please take another look when you have a chance. Thanks!

@ujjwalv01 ujjwalv01 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks @utkarshpatwa393-sys , for working through the review!

@ujjwalv01 ujjwalv01 added Feature Issue or pull request for adding a new feature. Needs Review A pull request which needs code review. C Issue involves or relates to C. difficulty: 2 May require some initial design or R&D, but should be straightforward to resolve and/or implement. and removed Needs Changes Pull request which needs changes before being merged. labels Nov 23, 2026
@stdlib-bot

Copy link
Copy Markdown
Contributor

⚠️ Tracking Issue Closure Warning ⚠️

I noticed your PR description contains closing keywords ("Resolves", "Closes", or "Fixes") referencing a "Tracking Issue".

Why this matters:
Tracking issues should typically remain open until all related sub-issues are completed. GitHub automatically closes issues with such closing keywords when the PR is merged. For more information, see GitHub's documentation on using keywords in issues and pull requests.

Required action:
Use "Progresses" instead to reference the tracking issue without automatically closing it.

Thank you for your contribution to the project!

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). C Issue involves or relates to C. difficulty: 2 May require some initial design or R&D, but should be straightforward to resolve and/or implement. Feature Issue or pull request for adding a new feature. First-time Contributor A pull request from a contributor who has never previously committed to the project repository. Needs Review A pull request which needs code review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants