Skip to content

Commit 59dce08

Browse files
committed
Update example
1 parent de9b7a4 commit 59dce08

File tree

1 file changed

+2
-2
lines changed
  • lib/node_modules/@stdlib/ndarray/base/unary/examples

1 file changed

+2
-2
lines changed

lib/node_modules/@stdlib/ndarray/base/unary/examples/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ var filledarray = require( '@stdlib/array/filled' );
2323
var gfillBy = require( '@stdlib/blas/ext/base/gfill-by' );
2424
var shape2strides = require( '@stdlib/ndarray/base/shape2strides' );
2525
var ndarray2array = require( '@stdlib/ndarray/base/to-array' );
26-
var unary = require( './../lib/2d.js' );
26+
var unary = require( './../lib' );
2727

2828
function scale( x ) {
2929
return x * 10;
@@ -51,6 +51,6 @@ var y = {
5151
'order': 'column-major'
5252
};
5353

54-
unary( x, y, scale );
54+
unary( [ x, y ], scale );
5555
console.log( ndarray2array( x.data, x.shape, x.strides, x.offset, x.order ) );
5656
console.log( ndarray2array( y.data, y.shape, y.strides, y.offset, y.order ) );

0 commit comments

Comments
 (0)