Skip to content

Commit ff1dd27

Browse files
committed
docs: update example
1 parent 6603229 commit ff1dd27

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

lib/node_modules/@stdlib/ndarray/map/examples/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ var abs = require( '@stdlib/math/base/special/abs' );
2323
var ndarray2array = require( '@stdlib/ndarray/base/to-array' );
2424
var naryFunction = require( '@stdlib/utils/nary-function' );
2525
var ndarray = require( '@stdlib/ndarray/ctor' );
26-
var map = require( '@stdlib/ndarray/map' );
26+
var map = require( './../lib' );
2727

2828
var buffer = discreteUniform( 10, -100, 100, {
2929
'dtype': 'generic'
@@ -32,7 +32,7 @@ var shape = [ 5, 2 ];
3232
var strides = [ 2, 1 ];
3333
var offset = 0;
3434
var x = ndarray( 'generic', buffer, shape, strides, offset, 'row-major' );
35+
console.log( ndarray2array( x.data, x.shape, x.strides, x.offset, x.order ) );
3536

3637
var y = map( x, naryFunction( abs, 1 ) );
37-
console.log( ndarray2array( x.data, x.shape, x.strides, x.offset, x.order ) );
3838
console.log( ndarray2array( y.data, y.shape, y.strides, y.offset, y.order ) );

0 commit comments

Comments
 (0)