Skip to content

Commit d9d8fe3

Browse files
committed
update imports
1 parent 5a05b11 commit d9d8fe3

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ The function has the following parameters:
7878

7979
```javascript
8080
var discreteUniform = require( '@stdlib/random/array/discrete-uniform' );
81-
var scalar2ndarray = require( '@stdlib/ndarray/base/from-scalar' );
81+
var scalar2ndarray = require( '@stdlib/ndarray/from-scalar' );
8282
var ndarray = require( '@stdlib/ndarray/base/ctor' );
8383
var ndarray2array = require( '@stdlib/ndarray/to-array' );
8484
var daxpy = require( '@stdlib/blas/base/ndarray/daxpy' );
@@ -95,7 +95,7 @@ var ybuf = discreteUniform( xbuf.length, 0, 10, opts );
9595
var y = new ndarray( opts.dtype, ybuf, [ ybuf.length ], [ 1 ], 0, 'row-major' );
9696
console.log( ndarray2array( y ) );
9797

98-
var alpha = scalar2ndarray( 5.0, opts.dtype, 'row-major' );
98+
var alpha = scalar2ndarray( 5.0, opts );
9999
var out = daxpy( [ x, y, alpha ] );
100100
console.log( ndarray2array( out ) );
101101
```

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@ var ybuf = discreteUniform( xbuf.length, 0, 10, opts );
3636
var y = new ndarray( opts.dtype, ybuf, [ ybuf.length ], [ 1 ], 0, 'row-major' );
3737
console.log( ndarray2array( y ) );
3838

39-
var alpha = scalar2ndarray( 5.0, opts.dtype, 'row-major' );
39+
var alpha = scalar2ndarray( 5.0, opts );
4040
var out = daxpy( [ x, y, alpha ] );
4141
console.log( ndarray2array( out ) );

0 commit comments

Comments
 (0)