feat: add blas/ext/base/ndarray/dvander - #15420
headlessNode wants to merge 1 commit into
Conversation
Coverage Report
The above coverage report was generated for the changes in this PR. |
|
|
||
| with decreasing powers along the rows. | ||
|
|
||
| If `M <= 0` or `N <= 0`, the function returns the output ndarray |
|
|
||
| so = getStrides( out, false ); | ||
|
|
||
| strided( mode, numelDimension( out, 0 ), numelDimension( out, 1 ), getData( x ), getStride( x, 0 ), getOffset( x ), getData( out ), so[ 0 ], so[ 1 ], getOffset( out ) ); // eslint-disable-line max-len |
There was a problem hiding this comment.
You are getting more than one dimension, just as you retrieved more than one stride. Use getShape, rather than calling numelDimension twice.
| t.end(); | ||
| }); | ||
|
|
||
| tape( 'if provided `M` equal to `0`, the function returns the output ndarray unchanged', function test( t ) { |
There was a problem hiding this comment.
What is M? You cannot simply copy-paste the strided test descriptions. "if provided an empty input ndarray, ..."
| t.end(); | ||
| }); | ||
|
|
||
| tape( 'if provided `N` equal to `0`, the function returns the output ndarray unchanged', function test( t ) { |
There was a problem hiding this comment.
"if not provided an output ndarray with at least one column, ..."
| t.end(); | ||
| }); | ||
|
|
||
| tape( 'the function supports output stride with padding (row-major)', function test( t ) { |
There was a problem hiding this comment.
What does "output stride with padding" mean? Just say "supports output ndarrays within non-unit strides".
| t.end(); | ||
| }); | ||
|
|
||
| tape( 'the function supports output stride with padding (column-major)', function test( t ) { |
| t.end(); | ||
| }); | ||
|
|
||
| tape( 'the function handles zero values in the input array (row-major, increasing)', function test( t ) { |
There was a problem hiding this comment.
| tape( 'the function handles zero values in the input array (row-major, increasing)', function test( t ) { | |
| tape( 'the function handles zero values in the input ndarray (row-major, increasing)', function test( t ) { |
Be consistent.
|
|
||
| ```text | ||
| [ | ||
| 1 x_0^1 x_0^2 ... x_0^(N-1) |
There was a problem hiding this comment.
What does N stand for? You need to define your terminology.
"Let the output ndarray have shape [M, N]. When the mode is positive, ..."
|
|
||
| ## Notes | ||
|
|
||
| - If `M <= 0` or `N <= 0`, the function returns the output ndarray unchanged. |
There was a problem hiding this comment.
Same comment. M and N have been simply copy-pasted from the strided docs, but you need to explain them here.
"Let the output ndarray have shape [M, N]. If M <= 0 or ..."
Resolves stdlib-js/metr-issue-tracker#1349.
Description
This pull request:
blas/ext/base/ndarray/dvanderRelated Issues
This pull request has the following related issues:
blas/ext/base/ndarray/dvandermetr-issue-tracker#1349.Questions
No.
Other
No.
Checklist
AI Assistance
If you answered "yes" above, how did you use AI assistance?
Disclosure
Primarily written by Claude Code.
@stdlib-js/reviewers