diff --git a/lib/node_modules/@stdlib/stats/base/ndarray/cumax/README.md b/lib/node_modules/@stdlib/stats/base/ndarray/cumax/README.md index 9de3bdf3d96e..2d574f4d896a 100644 --- a/lib/node_modules/@stdlib/stats/base/ndarray/cumax/README.md +++ b/lib/node_modules/@stdlib/stats/base/ndarray/cumax/README.md @@ -41,7 +41,6 @@ var cumax = require( '@stdlib/stats/base/ndarray/cumax' ); Computes the cumulative maximum value of a one-dimensional ndarray. ```javascript -var ndarray2array = require( '@stdlib/ndarray/to-array' ); var ndarray = require( '@stdlib/ndarray/base/ctor' ); var xbuf = [ 1.0, 3.0, 4.0, 2.0 ]; @@ -51,13 +50,10 @@ var ybuf = [ 0.0, 0.0, 0.0, 0.0 ]; var y = new ndarray( 'generic', xbuf, [ 4 ], [ 1 ], 0, 'row-major' ); var v = cumax( [ x, y ] ); -// returns +// returns [ 1.0, 3.0, 4.0, 4.0 ] var bool = ( v === y ); // returns true - -var arr = ndarray2array( v ); -// returns [ 1.0, 3.0, 4.0, 4.0 ] ``` The function has the following parameters: diff --git a/lib/node_modules/@stdlib/stats/base/ndarray/cumax/docs/repl.txt b/lib/node_modules/@stdlib/stats/base/ndarray/cumax/docs/repl.txt index 980299cf7665..5c98783b7523 100644 --- a/lib/node_modules/@stdlib/stats/base/ndarray/cumax/docs/repl.txt +++ b/lib/node_modules/@stdlib/stats/base/ndarray/cumax/docs/repl.txt @@ -27,9 +27,8 @@ > var ord = 'row-major'; > var x = new {{alias:@stdlib/ndarray/ctor}}( dt, xbuf, sh, st, oo, ord ); > var y = new {{alias:@stdlib/ndarray/ctor}}( dt, ybuf, sh, st, oo, ord ); - > {{alias}}( [ x, y ] ); - > {{alias:@stdlib/ndarray/to-array}}( y ) - [ 1.0, 1.0, 2.0 ] + > {{alias}}( [ x, y ] ) + [ 1.0, 1.0, 2.0 ] See Also -------- diff --git a/lib/node_modules/@stdlib/stats/base/ndarray/cumax/docs/types/index.d.ts b/lib/node_modules/@stdlib/stats/base/ndarray/cumax/docs/types/index.d.ts index 46deca72c6d1..8a9f3ce8e63e 100644 --- a/lib/node_modules/@stdlib/stats/base/ndarray/cumax/docs/types/index.d.ts +++ b/lib/node_modules/@stdlib/stats/base/ndarray/cumax/docs/types/index.d.ts @@ -29,7 +29,6 @@ import { ndarray, typedndarray } from '@stdlib/types/ndarray'; * @returns output ndarray * * @example -* var ndarray2array = require( '@stdlib/ndarray/to-array' ); * var ndarray = require( '@stdlib/ndarray/base/ctor' ); * * var xbuf = [ 1.0, 3.0, 4.0, 2.0 ]; @@ -39,13 +38,10 @@ import { ndarray, typedndarray } from '@stdlib/types/ndarray'; * var y = new ndarray( 'generic', ybuf, [ 4 ], [ 1 ], 0, 'row-major' ); * * var v = cumax( [ x, y ] ); -* // returns +* // returns [ 1.0, 3.0, 4.0, 4.0 ] * * var bool = ( v === y ); * // returns true -* -* var arr = ndarray2array( v ); -* // returns [ 1.0, 3.0, 4.0, 4.0 ] */ declare function cumax = typedndarray>( arrays: [ ndarray, T ] ): T; diff --git a/lib/node_modules/@stdlib/stats/base/ndarray/cumax/lib/index.js b/lib/node_modules/@stdlib/stats/base/ndarray/cumax/lib/index.js index 365bcd3b41e0..d2c3f412a77c 100644 --- a/lib/node_modules/@stdlib/stats/base/ndarray/cumax/lib/index.js +++ b/lib/node_modules/@stdlib/stats/base/ndarray/cumax/lib/index.js @@ -24,7 +24,6 @@ * @module @stdlib/stats/base/ndarray/cumax * * @example -* var ndarray2array = require( '@stdlib/ndarray/to-array' ); * var ndarray = require( '@stdlib/ndarray/base/ctor' ); * var cumax = require( '@stdlib/stats/base/ndarray/cumax' ); * @@ -35,13 +34,10 @@ * var y = new ndarray( 'generic', xbuf, [ 4 ], [ 1 ], 0, 'row-major' ); * * var v = cumax( [ x, y ] ); -* // returns +* // returns [ 1.0, 3.0, 4.0, 4.0 ] * * var bool = ( v === y ); * // returns true -* -* var arr = ndarray2array( v ); -* // returns [ 1.0, 3.0, 4.0, 4.0 ] */ // MODULES // diff --git a/lib/node_modules/@stdlib/stats/base/ndarray/cumax/lib/main.js b/lib/node_modules/@stdlib/stats/base/ndarray/cumax/lib/main.js index 63266a2bbbcd..8580cb2d8b24 100644 --- a/lib/node_modules/@stdlib/stats/base/ndarray/cumax/lib/main.js +++ b/lib/node_modules/@stdlib/stats/base/ndarray/cumax/lib/main.js @@ -36,7 +36,6 @@ var strided = require( '@stdlib/stats/base/cumax' ).ndarray; * @returns {ndarrayLike} output ndarray * * @example -* var ndarray2array = require( '@stdlib/ndarray/to-array' ); * var ndarray = require( '@stdlib/ndarray/base/ctor' ); * * var xbuf = [ 1.0, 3.0, 4.0, 2.0 ]; @@ -46,13 +45,10 @@ var strided = require( '@stdlib/stats/base/cumax' ).ndarray; * var y = new ndarray( 'generic', xbuf, [ 4 ], [ 1 ], 0, 'row-major' ); * * var v = cumax( [ x, y ] ); -* // returns +* // returns [ 1.0, 3.0, 4.0, 4.0 ] * * var bool = ( v === y ); * // returns true -* -* var arr = ndarray2array( v ); -* // returns [ 1.0, 3.0, 4.0, 4.0 ] */ function cumax( arrays ) { var x = arrays[ 0 ];