-
-
Notifications
You must be signed in to change notification settings - Fork 612
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
refactor update blas/ext/base/dsumkbn2
to follow current project conventions
#1995
Conversation
blas/ext/base/dsumkbn2
to follow current project conventions
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 this PR; looks all good to me.
@@ -39,7 +39,7 @@ | |||
* var dsumkbn2 = require( '@stdlib/blas/ext/base/dsumkbn2' ); | |||
* | |||
* var x = new Float64Array( [ 2.0, 1.0, 2.0, -2.0, -2.0, 2.0, 3.0, 4.0 ] ); | |||
* var N = floor( x.length / 2 ); | |||
* var N = 3;; |
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.
@Planeshifter floor
should be have been removed. Would be good to ensure that ESLint can run on these examples.
@@ -47,7 +47,7 @@ var abs = require( '@stdlib/math/base/special/abs' ); | |||
* var floor = require( '@stdlib/math/base/special/floor' ); | |||
* | |||
* var x = new Float64Array( [ 2.0, 1.0, 2.0, -2.0, -2.0, 2.0, 3.0, 4.0 ] ); | |||
* var N = floor( x.length / 2 ); | |||
* var N = 4; |
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.
Same comment. floor
should have been removed.
@@ -40,17 +41,16 @@ var addon = require( './dsumkbn2.native.js' ); | |||
* var floor = require( '@stdlib/math/base/special/floor' ); | |||
* | |||
* var x = new Float64Array( [ 2.0, 1.0, 2.0, -2.0, -2.0, 2.0, 3.0, 4.0 ] ); | |||
* var N = floor( x.length / 2 ); | |||
* var N = 4; |
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.
Same comment. floor
should have been removed.
} | ||
] | ||
} | ||
"options": {}, |
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.
@Planeshifter This file is missing build configurations.
STDLIB_NAPI_ARGV_INT64( env, strideX, argv, 2 ); | ||
STDLIB_NAPI_ARGV_STRIDED_FLOAT64ARRAY( env, X, N, strideX, argv, 1 ); | ||
|
||
napi_value v; | ||
napi_create_double( env, stdlib_strided_dsumkbn2( N, X, strideX ), &v ); | ||
|
||
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.
This file has mixed TAB and space indentation.
Resolves #1506.
Description
This pull request refactors the existing implementation to follow the current project convention for
blas/ext/base/dsumkbn2
Related Issues
This pull request:
blas/ext/base/dsumkbn2
to follow current project conventions #1506Questions
No.
Other
No.
Checklist
@stdlib-js/reviewers