Skip to content

Commit eb98b40

Browse files
committed
chore: align README identity check across blas/base/ndarray/*
Propagates fix from 1f18356 ("chore: modernize examples and benchmarks") to the complex and swap sibling packages whose README examples still wrote the output-ndarray identity check as `( y === z )` instead of the canonical `( z === y )` form used across modernized siblings (daxpy, saxpy, dcopy, scopy, ...).
1 parent 9188369 commit eb98b40

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

lib/node_modules/@stdlib/blas/base/ndarray/caxpy/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ var alpha = scalar2ndarray( new Complex64( 1.0, 2.0 ), {
5454
var z = caxpy( [ x, y, alpha ] );
5555
// returns <ndarray>[ <Complex64>[ -2.0, 5.0 ], <Complex64>[ -4.0, 11.0 ], <Complex64>[ -6.0, 17.0 ] ]
5656

57-
var bool = ( y === z );
57+
var bool = ( z === y );
5858
// returns true
5959
```
6060

lib/node_modules/@stdlib/blas/base/ndarray/ccopy/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ var y = new Complex64Vector( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] );
4949
var z = ccopy( [ x, y ] );
5050
// returns <ndarray>[ <Complex64>[ 1.0, 2.0 ], <Complex64>[ 3.0, 4.0 ], <Complex64>[ 5.0, 6.0 ] ]
5151

52-
var bool = ( y === z );
52+
var bool = ( z === y );
5353
// returns true
5454
```
5555

lib/node_modules/@stdlib/blas/base/ndarray/dswap/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ var z = dswap( [ x, y ] );
5454
// x => <ndarray>[ 6.0, 7.0, 8.0, 9.0, 10.0 ]
5555
// y => <ndarray>[ 1.0, 2.0, 3.0, 4.0, 5.0 ]
5656

57-
var bool = ( y === z );
57+
var bool = ( z === y );
5858
// returns true
5959
```
6060

lib/node_modules/@stdlib/blas/base/ndarray/zaxpy/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ var alpha = scalar2ndarray( new Complex128( 1.0, 2.0 ), {
5454
var z = zaxpy( [ x, y, alpha ] );
5555
// returns <ndarray>[ <Complex128>[ -2.0, 5.0 ], <Complex128>[ -4.0, 11.0 ], <Complex128>[ -6.0, 17.0 ] ]
5656

57-
var bool = ( y === z );
57+
var bool = ( z === y );
5858
// returns true
5959
```
6060

lib/node_modules/@stdlib/blas/base/ndarray/zcopy/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ var y = new Complex128Vector( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] );
4949
var z = zcopy( [ x, y ] );
5050
// returns <ndarray>[ <Complex128>[ 1.0, 2.0 ], <Complex128>[ 3.0, 4.0 ], <Complex128>[ 5.0, 6.0 ] ]
5151

52-
var bool = ( y === z );
52+
var bool = ( z === y );
5353
// returns true
5454
```
5555

0 commit comments

Comments
 (0)