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

refactor update blas/ext/base/dsumkbn2 to follow current project conventions #1995

Merged
merged 2 commits into from
Mar 23, 2024

Conversation

liberocks
Copy link
Contributor

Resolves #1506.

Description

What is the purpose of this pull request?

This pull request refactors the existing implementation to follow the current project convention for blas/ext/base/dsumkbn2

Related Issues

Does this pull request have any related issues?

This pull request:

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

@stdlib-bot stdlib-bot added the BLAS Issue or pull request related to Basic Linear Algebra Subprograms (BLAS). label Mar 22, 2024
@liberocks liberocks changed the title refactor: update implementation in accordance with current project convention refactor update blas/ext/base/dsumkbn2 to follow current project conventions Mar 22, 2024
@liberocks liberocks changed the title refactor update blas/ext/base/dsumkbn2 to follow current project conventions refactor update blas/ext/base/dsumkbn2 to follow current project conventions Mar 22, 2024
Copy link
Member

@Planeshifter Planeshifter 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 this PR; looks all good to me.

@Planeshifter Planeshifter merged commit 7c81bdd into stdlib-js:develop Mar 23, 2024
8 checks passed
@kgryte kgryte added Enhancement Issue or pull request for enhancing existing functionality. Native Addons Issue involves or relates to Node.js native add-ons. C Issue involves or relates to C. labels Mar 23, 2024
@@ -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;;
Copy link
Member

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;
Copy link
Member

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;
Copy link
Member

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": {},
Copy link
Member

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.

Comment on lines +38 to +44
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;
Copy link
Member

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.

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. Enhancement Issue or pull request for enhancing existing functionality. Native Addons Issue involves or relates to Node.js native add-ons.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[RFC]: refactor blas/ext/base/dsumkbn2 to follow current project conventions
4 participants