Skip to content

feat: add C implementation for blas/ext/base/ndarray/dvander - #16486

Open
utkarshpatwa393-sys wants to merge 1 commit into
stdlib-js:developfrom
utkarshpatwa393-sys:feat/c-impl-blas-ext-base-ndarray-dvander
Open

utkarshpatwa393-sys wants to merge 1 commit into
stdlib-js:developfrom
utkarshpatwa393-sys:feat/c-impl-blas-ext-base-ndarray-dvander

Conversation

@utkarshpatwa393-sys

Copy link
Copy Markdown

Progresses #14819

Description

What is the purpose of this pull request?

This pull request:

  • feat: add C implementation for blas/ext/base/ndarray/dvander

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? 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

AI assistance was used for reviewing changes and research. All files, C compilation with -Wall -Wextra -pedantic, JS/native test suites, benchmarks, and linting have been verified.


@stdlib-js/reviewers

Signed-off-by: Utkarsh patwa <utkarshpatwa393@gmail.com>
@utkarshpatwa393-sys
utkarshpatwa393-sys requested a review from a team November 4, 2026 03:38
@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 4, 2026

<!-- /.examples -->

<!-- C part. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->

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
<!-- C part. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->
<!-- C interface documentation. -->
* * *


<!-- /.notes -->

<!-- C device examples. -->

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
<!-- C device examples. -->
<!-- C API usage examples. -->

#include <stdlib.h>
#include <stdio.h>

int main( void ) {

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 C example should match examples/c/example.c exactly (minus the cppcheck-suppress lines); several comments and declarations are missing here.

int i;
int j;

print_version();

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
print_version();
// Use the current time to seed the random number generator:
srand( time( NULL ) );
print_version();

printf( "# c::%s:len=%d\n", NAME, len );
elapsed = benchmark( iter, len );
print_results( iter, elapsed );
printf( "ok %d - benchmark finished\n", count );

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( "ok %d - benchmark finished\n", count );
printf( "ok %d benchmark finished\n", count );

@ujjwalv01

Copy link
Copy Markdown
Member

Left few suggestions;

@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 4, 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). First-time Contributor A pull request from a contributor who has never previously committed to the project repository. Needs Changes Pull request which needs changes before being merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants