Skip to content

Commit 5f6d3da

Browse files
authored
Apply suggestions from code review
Co-authored-by: Athan <kgryte@gmail.com> Signed-off-by: Athan <kgryte@gmail.com>
1 parent ff29981 commit 5f6d3da

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/node_modules/@stdlib/blas/ext/base/clast-index-of-row/lib/clast_index_of_row.js

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

lib/node_modules/@stdlib/blas/ext/base/clast-index-of-row/lib/clast_index_of_row.native.js

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

0 commit comments

Comments
 (0)