Skip to content

Commit 797439e

Browse files
authored
Apply suggestions from code review
Co-authored-by: Athan <kgryte@gmail.com> Signed-off-by: Athan <kgryte@gmail.com>
1 parent 3a0cf0a commit 797439e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/node_modules/@stdlib/blas/ext/base/sindex-of-column/lib/sindex_of_column.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ function sindexOfColumn( order, M, N, A, LDA, x, strideX, workspace, strideW ) {
7676
s = M;
7777
}
7878
if ( LDA < max( 1, s ) ) {
79-
throw new RangeError( format( 'invalid argument. Fifth argument must be a valid stride. Value: `%d`.', LDA ) );
79+
throw new RangeError( format( 'invalid argument. Fifth argument must be greater than or equal to max(1,%d). Value: `%d`.', max( 1, s ), LDA ) );
8080
}
8181
if ( isColumnMajor( order ) ) {
8282
sa1 = 1;

lib/node_modules/@stdlib/blas/ext/base/sindex-of-column/lib/sindex_of_column.native.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ function sindexOfColumn( order, M, N, A, LDA, x, strideX, workspace, strideW ) {
6868
s = M;
6969
}
7070
if ( LDA < max( 1, s ) ) {
71-
throw new RangeError( format( 'invalid argument. Fifth argument must be a valid stride. Value: `%d`.', LDA ) );
71+
throw new RangeError( format( 'invalid argument. Fifth argument must be greater than or equal to max(1,%d). Value: `%d`.', max( 1, s ), LDA ) );
7272
}
7373
return addon( resolveOrder( order ), M, N, A, LDA, x, strideX, workspace, strideW ); // eslint-disable-line max-len
7474
}

0 commit comments

Comments
 (0)