-
-
Notifications
You must be signed in to change notification settings - Fork 907
feat: add support for stack for blas/scopy
#3095
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
base: develop
Are you sure you want to change the base?
Conversation
// MODULES // | ||
|
||
var base = require( '@stdlib/blas/base/scopy' ).ndarray; | ||
var factory = require( '@stdlib/blas/tools/swap-factory' ); |
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.
@aman-095 I understand why you are attempting to reuse swap-factory
; however, I'd advise not doing that, as the behavior is not guaranteed to be the same, as mentioned in the test file below.
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.
You need to actually create tools/copy-factory
.
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.
You can open as a separate PR.
Coverage Report
The above coverage report was generated for the changes in this PR. |
} | ||
}); | ||
|
||
tape( 'the function throws an error if provided a first argument which is a read-only ndarray', function test( t ) { |
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.
@aman-095 This is incorrect. The first argument is not mutated, so it can be read-only. This test passes because you chose to use swap-factory
, but that tool is designed for different behavior.
/stdlib update-copyright-years |
Description
This pull request adds support for stacks for
blas/scopy
.Related Issues
None.
Questions
No.
Other
No.
Checklist
@stdlib-js/reviewers