Skip to content

Commit fc1d8d5

Browse files
authored
fix: condition checks in blas/base/ssyr2
PR-URL: #6543 Reviewed-by: Athan Reines <[email protected]>
1 parent 8459c35 commit fc1d8d5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/node_modules/@stdlib/blas/base/ssyr2/lib/ndarray.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ function ssyr2( uplo, N, alpha, x, strideX, offsetX, y, strideY, offsetY, A, str
7070
throw new RangeError( format( 'invalid argument. Fifth argument must be non-zero. Value: `%d`.', strideX ) );
7171
}
7272
if ( strideY === 0 ) {
73-
throw new RangeError( format( 'invalid argument. Eighth argument must be non-zero. Value: `%d`.', strideX ) );
73+
throw new RangeError( format( 'invalid argument. Eighth argument must be non-zero. Value: `%d`.', strideY ) );
7474
}
7575
if ( N === 0 || alpha === 0.0 ) {
7676
return A;

lib/node_modules/@stdlib/blas/base/ssyr2/lib/ssyr2.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ function ssyr2( order, uplo, N, alpha, x, strideX, y, strideY, A, LDA ) {
7979
throw new RangeError( format( 'invalid argument. Sixth argument must be non-zero. Value: `%d`.', strideX ) );
8080
}
8181
if ( strideY === 0 ) {
82-
throw new RangeError( format( 'invalid argument. Eighth argument must be non-zero. Value: `%d`.', strideX ) );
82+
throw new RangeError( format( 'invalid argument. Eighth argument must be non-zero. Value: `%d`.', strideY ) );
8383
}
8484
if ( LDA < max( 1, N ) ) {
8585
throw new RangeError( format( 'invalid argument. Tenth argument must be greater than or equal to max(1,%d). Value: `%d`.', N, LDA ) );

0 commit comments

Comments
 (0)