-
-
Notifications
You must be signed in to change notification settings - Fork 975
feat: add ndarray/concat1d
#8584
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
Coverage Report
The above coverage report was generated for the changes in this PR. |
| if ( arrs.length >= 1 ) { | ||
| dt = resolveDataTypes( arrs ); | ||
| ord = resolveOrder( arrs ); | ||
| } |
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.
| } | |
| } else { | |
| dt = DEFAULT_DTYPE; | |
| ord = DEFAULT_ORDER; | |
| } |
| } else if ( !dt && !ord ) { | ||
| args[ i ] = broadcastScalar( args[ i ], DEFAULT_DTYPE, [ 1 ], DEFAULT_ORDER ); // eslint-disable-line max-len |
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.
| } else if ( !dt && !ord ) { | |
| args[ i ] = broadcastScalar( args[ i ], DEFAULT_DTYPE, [ 1 ], DEFAULT_ORDER ); // eslint-disable-line max-len |
This branch doesn't seem to be necessary if you resolve defaults above in the case where only scalars have been provided.
| args[ i ] = broadcastScalar( args[ i ], dt, [ 1 ], ord ); | ||
| } | ||
| } | ||
| return concat( normalizeArrays( args ) ); |
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.
Why are you "normalizing" arrays here? Not clear why this is necessary.
Resolves stdlib-js/metr-issue-tracker#116.
Description
This pull request:
ndarray/concat1dRelated Issues
This pull request has the following related issues:
ndarray/concat1dmetr-issue-tracker#116Questions
No.
Other
No.
Checklist
AI Assistance
If you answered "yes" above, how did you use AI assistance?
Disclosure
{{TODO: add disclosure if applicable}}
@stdlib-js/reviewers