-
-
Notifications
You must be signed in to change notification settings - Fork 594
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
updated sasumpw #1854
Conversation
lib/node_modules/@stdlib/blas/ext/base/sasumpw/include/stdlib/blas/ext/base/sasumpw.h
Outdated
Show resolved
Hide resolved
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; |
There was a problem hiding this comment.
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": [ |
There was a problem hiding this comment.
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.
There was a problem hiding this 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.
…blas/ext/base/sasumpw.h Co-authored-by: Athan <[email protected]> Signed-off-by: Shivam <[email protected]>
…ive.js Co-authored-by: Athan <[email protected]> Signed-off-by: Shivam <[email protected]>
Resolves # .
Description
This pull request:
Related Issues
This pull request:
Questions
No.
Other
No.
Checklist
@stdlib-js/reviewers