diff --git a/lib/node_modules/@stdlib/utils/map-right/README.md b/lib/node_modules/@stdlib/utils/map-right/README.md index e1ac297bdd83..ae8fbf5d3921 100644 --- a/lib/node_modules/@stdlib/utils/map-right/README.md +++ b/lib/node_modules/@stdlib/utils/map-right/README.md @@ -209,14 +209,7 @@ The applied function is provided the same arguments as with [`mapRight`](#fcn-ma var y = new Complex64Array( 4 ); mapRight.assign( x, y, scale ); - - var v = y.get( 0 ); - - var re = realf( v ); - // returns 10.0 - - var im = imagf( v ); - // returns 20.0 + // y => [ 10.0, 20.0, 30.0, 40.0, 50.0, 60.0, 70.0, 80.0 ] ``` - When applying a function to [`ndarray`][@stdlib/ndarray/ctor]-like objects, performance will be best for [`ndarray`][@stdlib/ndarray/ctor]-like objects which are single-segment contiguous. For non-contiguous arrays, see [`@stdlib/ndarray/base/unary`][@stdlib/ndarray/base/unary]. diff --git a/lib/node_modules/@stdlib/utils/map-right/lib/ndarray.js b/lib/node_modules/@stdlib/utils/map-right/lib/ndarray.js index d636a51b4cfa..2f812ee9be8a 100644 --- a/lib/node_modules/@stdlib/utils/map-right/lib/ndarray.js +++ b/lib/node_modules/@stdlib/utils/map-right/lib/ndarray.js @@ -120,14 +120,7 @@ var MODE = 'throw'; * * // Apply the unary function: * mapRight( x, y, naryFunction( scale, 1 ) ); -* -* var v = y.data.get( 0 ); -* -* var re = realf( v ); -* // returns 10.0 -* -* var im = imagf( v ); -* // returns 20.0 +* // ybuf => [ 10.0, 20.0, 30.0, 40.0, 50.0, 60.0, 70.0, 80.0 ] */ function mapRight( x, y, fcn, thisArg ) { var xbuf; diff --git a/lib/node_modules/@stdlib/utils/map/README.md b/lib/node_modules/@stdlib/utils/map/README.md index 89c16b7dc316..e47a8b8e664f 100644 --- a/lib/node_modules/@stdlib/utils/map/README.md +++ b/lib/node_modules/@stdlib/utils/map/README.md @@ -209,14 +209,7 @@ The applied function is provided the same arguments as with [`map`](#fcn-map). var y = new Complex64Array( 4 ); map.assign( x, y, scale ); - - var v = y.get( 0 ); - - var re = realf( v ); - // returns 10.0 - - var im = imagf( v ); - // returns 20.0 + // y => [ 10.0, 20.0, 30.0, 40.0, 50.0, 60.0, 70.0, 80.0 ] ``` - When applying a function to [`ndarray`][@stdlib/ndarray/ctor]-like objects, performance will be best for [`ndarray`][@stdlib/ndarray/ctor]-like objects which are single-segment contiguous. For non-contiguous arrays, see [`@stdlib/ndarray/base/unary`][@stdlib/ndarray/base/unary]. diff --git a/lib/node_modules/@stdlib/utils/map/lib/ndarray.js b/lib/node_modules/@stdlib/utils/map/lib/ndarray.js index 5cdcb117a821..64daa2e5dc0d 100644 --- a/lib/node_modules/@stdlib/utils/map/lib/ndarray.js +++ b/lib/node_modules/@stdlib/utils/map/lib/ndarray.js @@ -120,14 +120,7 @@ var MODE = 'throw'; * * // Apply the unary function: * map( x, y, naryFunction( scale, 1 ) ); -* -* var v = y.data.get( 0 ); -* -* var re = realf( v ); -* // returns 10.0 -* -* var im = imagf( v ); -* // returns 20.0 +* // ybuf => [ 10.0, 20.0, 30.0, 40.0, 50.0, 60.0, 70.0, 80.0 ] */ function map( x, y, fcn, thisArg ) { var xbuf; diff --git a/lib/node_modules/@stdlib/utils/map2-right/README.md b/lib/node_modules/@stdlib/utils/map2-right/README.md index 4b4d3d546641..e3c5e0a16bde 100644 --- a/lib/node_modules/@stdlib/utils/map2-right/README.md +++ b/lib/node_modules/@stdlib/utils/map2-right/README.md @@ -205,9 +205,6 @@ The applied function is provided the same arguments as with [`map2Right`](#fcn-m ```javascript var naryFunction = require( '@stdlib/utils/nary-function' ); var Complex64Array = require( '@stdlib/array/complex64' ); - var Complex64 = require( '@stdlib/complex/float32/ctor' ); - var realf = require( '@stdlib/complex/float32/real' ); - var imagf = require( '@stdlib/complex/float32/imag' ); var add = require( '@stdlib/complex/float32/base/add' ); var x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] ); @@ -215,14 +212,7 @@ The applied function is provided the same arguments as with [`map2Right`](#fcn-m var z = new Complex64Array( 4 ); map2Right.assign( x, y, z, naryFunction( add, 2 ) ); - - var v = z.get( 0 ); - - var re = realf( v ); - // returns 2.0 - - var im = imagf( v ); - // returns 3.0 + // z => [ 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] ``` - When applying a function to [`ndarray`][@stdlib/ndarray/ctor]-like objects, performance will be best for [`ndarray`][@stdlib/ndarray/ctor]-like objects which are single-segment contiguous. For non-contiguous arrays, see [`@stdlib/ndarray/base/binary`][@stdlib/ndarray/base/binary]. diff --git a/lib/node_modules/@stdlib/utils/map2-right/lib/ndarray.js b/lib/node_modules/@stdlib/utils/map2-right/lib/ndarray.js index be95ee720a2b..4d613544fec8 100644 --- a/lib/node_modules/@stdlib/utils/map2-right/lib/ndarray.js +++ b/lib/node_modules/@stdlib/utils/map2-right/lib/ndarray.js @@ -69,9 +69,6 @@ var MODE = 'throw'; * * @example * var Complex64Array = require( '@stdlib/array/complex64' ); -* var Complex64 = require( '@stdlib/complex/float32/ctor' ); -* var realf = require( '@stdlib/complex/float32/real' ); -* var imagf = require( '@stdlib/complex/float32/imag' ); * var naryFunction = require( '@stdlib/utils/nary-function' ); * var add = require( '@stdlib/complex/float32/base/add' ); * @@ -143,14 +140,7 @@ var MODE = 'throw'; * * // Apply the function: * map2Right( x, y, z, naryFunction( add, 2 ) ); -* -* var v = z.data.get( 0 ); -* -* var re = realf( v ); -* // returns 2.0 -* -* var im = imagf( v ); -* // returns 3.0 +* // zbuf => [ 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] */ function map2Right( x, y, z, fcn, thisArg ) { var xbuf; diff --git a/lib/node_modules/@stdlib/utils/map2/README.md b/lib/node_modules/@stdlib/utils/map2/README.md index f8d7fb07d7df..0ea005bcd924 100644 --- a/lib/node_modules/@stdlib/utils/map2/README.md +++ b/lib/node_modules/@stdlib/utils/map2/README.md @@ -205,9 +205,6 @@ The applied function is provided the same arguments as with [`map2`](#fcn-map2). ```javascript var naryFunction = require( '@stdlib/utils/nary-function' ); var Complex64Array = require( '@stdlib/array/complex64' ); - var Complex64 = require( '@stdlib/complex/float32/ctor' ); - var realf = require( '@stdlib/complex/float32/real' ); - var imagf = require( '@stdlib/complex/float32/imag' ); var add = require( '@stdlib/complex/float32/base/add' ); var x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] ); @@ -215,14 +212,7 @@ The applied function is provided the same arguments as with [`map2`](#fcn-map2). var z = new Complex64Array( 4 ); map2.assign( x, y, z, naryFunction( add, 2 ) ); - - var v = z.get( 0 ); - - var re = realf( v ); - // returns 2.0 - - var im = imagf( v ); - // returns 3.0 + // z => [ 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] ``` - When applying a function to [`ndarray`][@stdlib/ndarray/ctor]-like objects, performance will be best for [`ndarray`][@stdlib/ndarray/ctor]-like objects which are single-segment contiguous. For non-contiguous arrays, see [`@stdlib/ndarray/base/binary`][@stdlib/ndarray/base/binary]. diff --git a/lib/node_modules/@stdlib/utils/map2/lib/ndarray.js b/lib/node_modules/@stdlib/utils/map2/lib/ndarray.js index dd11fda62ef9..b9c1ca00b5a9 100644 --- a/lib/node_modules/@stdlib/utils/map2/lib/ndarray.js +++ b/lib/node_modules/@stdlib/utils/map2/lib/ndarray.js @@ -69,9 +69,6 @@ var MODE = 'throw'; * * @example * var Complex64Array = require( '@stdlib/array/complex64' ); -* var Complex64 = require( '@stdlib/complex/float32/ctor' ); -* var realf = require( '@stdlib/complex/float32/real' ); -* var imagf = require( '@stdlib/complex/float32/imag' ); * var naryFunction = require( '@stdlib/utils/nary-function' ); * var add = require( '@stdlib/complex/float32/base/add' ); * @@ -143,14 +140,7 @@ var MODE = 'throw'; * * // Apply the function: * map2( x, y, z, naryFunction( add, 2 ) ); -* -* var v = z.data.get( 0 ); -* -* var re = realf( v ); -* // returns 2.0 -* -* var im = imagf( v ); -* // returns 3.0 +* // zbuf => [ 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] */ function map2( x, y, z, fcn, thisArg ) { var xbuf;