Skip to content

Commit 88a2f53

Browse files
committed
fixed runtime example bug in readme and index.js
1 parent c315797 commit 88a2f53

2 files changed

Lines changed: 2 additions & 2 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
@@ -97,7 +97,7 @@ var xbuf = new Complex64Array( discreteUniform( 10, 0, 100, opts ) );
9797
var x = new ndarray( 'complex64', xbuf, [ xbuf.length ], [ 1 ], 0, 'row-major' );
9898
console.log( ndarray2array( x ) );
9999

100-
var ybuf = new Complex64Array( discreteUniform( xbuf.length, 0, 10, opts ) );
100+
var ybuf = new Complex64Array( discreteUniform( xbuf.length*2, 0, 10, opts ) );
101101
var y = new ndarray( 'complex64', ybuf, [ ybuf.length ], [ 1 ], 0, 'row-major' );
102102
console.log( ndarray2array( y ) );
103103

lib/node_modules/@stdlib/blas/base/ndarray/caxpy/examples/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ var xbuf = new Complex64Array( discreteUniform( 10, 0, 100, opts ) );
3434
var x = new ndarray( 'complex64', xbuf, [ xbuf.length ], [ 1 ], 0, 'row-major' );
3535
console.log( ndarray2array( x ) );
3636

37-
var ybuf = new Complex64Array( discreteUniform( xbuf.length, 0, 10, opts ) );
37+
var ybuf = new Complex64Array( discreteUniform( xbuf.length*2, 0, 10, opts ) );
3838
var y = new ndarray( 'complex64', ybuf, [ ybuf.length ], [ 1 ], 0, 'row-major' );
3939
console.log( ndarray2array( y ) );
4040

0 commit comments

Comments
 (0)