-
-
Notifications
You must be signed in to change notification settings - Fork 456
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
feat: add forEach
method to array/complex64
#1211
Conversation
Signed-off-by: Athan <kgryte@gmail.com>
lib/node_modules/@stdlib/array/complex64/benchmark/benchmark.for_each.js
Outdated
Show resolved
Hide resolved
Signed-off-by: Athan <kgryte@gmail.com>
lib/node_modules/@stdlib/array/complex64/benchmark/benchmark.for_each.length.js
Outdated
Show resolved
Hide resolved
Signed-off-by: Athan <kgryte@gmail.com>
Signed-off-by: Athan <kgryte@gmail.com>
Signed-off-by: Athan <kgryte@gmail.com>
t.deepEqual( reinterpret64( out, 0 ), reinterpret64( out, 0 ), 'returns expected value' ); | ||
t.end(); | ||
|
||
function fcn( v ) { | ||
out.push( 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.
@Jaysukh-409 I'm not sure what you are trying to test here. I am surprised this test even runs. reinterpret64
is not intended to operate on generic arrays, so providing out
does not seem correct.
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.
And also, reinterpret64( out, 0 ), reinterpret64( out, 0 )
--> I'd expect these two things to be equal. You are testing that out
equals out
.
Signed-off-by: Athan <kgryte@gmail.com>
Signed-off-by: Athan <kgryte@gmail.com>
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.
@Jaysukh-409 Thanks for working on this. A test case needs to be updated. Once resolved, should be ready for merge.
Signed-off-by: Athan <kgryte@gmail.com>
Signed-off-by: Athan <kgryte@gmail.com>
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.
LGTM. Thanks, @Jaysukh-409!
Description
This pull request:
forEach
method to prototype ofComplex64Array
Related Issues
No.
Questions
No.
Other
No.
Checklist
@stdlib-js/reviewers