Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated sasumpw #1854

Closed
wants to merge 4 commits into from
Closed

Conversation

ShivamAhir
Copy link
Contributor

Resolves # .

Description

What is the purpose of this pull request?

This pull request:

  • a
  • b
  • c

Related Issues

Does this pull request have any related issues? #1515

This pull request:

  • resolves #
  • fixes #

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.


@stdlib-js/reviewers

@kgryte kgryte added Needs Review A pull request which needs code review. Native Addons Issue involves or relates to Node.js native add-ons. BLAS Issue or pull request related to Basic Linear Algebra Subprograms (BLAS). C Issue involves or relates to C. labels Mar 14, 2024
Comment on lines +36 to +45
STDLIB_NAPI_ARGV(env, info, argv, argc, 3);
STDLIB_NAPI_ARGV_INT64(env, N, argv, 0);
STDLIB_NAPI_ARGV_INT64(env, stride, argv, 2);
STDLIB_NAPI_ARGV_STRIDED_FLOAT32ARRAY(env, X, N, stride, argv, 1);

napi_value v;
napi_status status = napi_create_double(env, (double)stdlib_strided_ssumpw(N, (float *)X, stride), &v);
assert(status == napi_ok);

return v;
Copy link
Member

Choose a reason for hiding this comment

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

We use TABS in C files.

Also, the function call is incorrect. The API is sasumpw, not ssumpw.

@@ -34,7 +34,12 @@
"-lm"
],
"libpath": [],
"dependencies": []
"dependencies": [
Copy link
Member

Choose a reason for hiding this comment

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

This configuration file needs to be updated to include additional build configurations. See @stdlib/blas/ext/base/dfill for an example.

Copy link
Member

@kgryte kgryte left a comment

Choose a reason for hiding this comment

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

Thanks for working on this @ShivamAhir. I've left some initial comments.

@kgryte kgryte added Needs Changes Pull request which needs changes before being merged. and removed Needs Review A pull request which needs code review. labels Mar 14, 2024
@ShivamAhir ShivamAhir closed this Mar 20, 2024
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. Native Addons Issue involves or relates to Node.js native add-ons. Needs Changes Pull request which needs changes before being merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants