diff --git a/lib/node_modules/@stdlib/blas/base/ndarray/caxpy/README.md b/lib/node_modules/@stdlib/blas/base/ndarray/caxpy/README.md index d9c29453c829..fe9c63549ae8 100644 --- a/lib/node_modules/@stdlib/blas/base/ndarray/caxpy/README.md +++ b/lib/node_modules/@stdlib/blas/base/ndarray/caxpy/README.md @@ -54,7 +54,7 @@ var alpha = scalar2ndarray( new Complex64( 1.0, 2.0 ), { var z = caxpy( [ x, y, alpha ] ); // returns [ [ -2.0, 5.0 ], [ -4.0, 11.0 ], [ -6.0, 17.0 ] ] -var bool = ( y === z ); +var bool = ( z === y ); // returns true ``` diff --git a/lib/node_modules/@stdlib/blas/base/ndarray/caxpy/test/test.js b/lib/node_modules/@stdlib/blas/base/ndarray/caxpy/test/test.js index 91bc18f0f0fd..449ae842258d 100644 --- a/lib/node_modules/@stdlib/blas/base/ndarray/caxpy/test/test.js +++ b/lib/node_modules/@stdlib/blas/base/ndarray/caxpy/test/test.js @@ -24,7 +24,7 @@ var tape = require( 'tape' ); var isSameComplex64Array = require( '@stdlib/assert/is-same-complex64array' ); var Complex64Array = require( '@stdlib/array/complex64' ); var Complex64 = require( '@stdlib/complex/float32/ctor' ); -var scalar2ndarray = require( '@stdlib/ndarray/base/from-scalar' ); +var scalar2ndarray = require( '@stdlib/ndarray/from-scalar' ); var ndarray = require( '@stdlib/ndarray/base/ctor' ); var getData = require( '@stdlib/ndarray/data-buffer' ); var caxpy = require( './../lib' ); @@ -95,7 +95,9 @@ tape( 'the function multiplies a one-dimensional ndarray `x` by a constant `alph ]); x = vector( xbuf, 5, 1, 0 ); y = vector( ybuf, 5, 1, 0 ); - alpha = scalar2ndarray( new Complex64( 2.0, 2.0 ), 'complex64', 'row-major' ); + alpha = scalar2ndarray( new Complex64( 2.0, 2.0 ), { + 'dtype': 'complex64' + }); v = caxpy( [ x, y, alpha ] ); @@ -128,7 +130,9 @@ tape( 'the function multiplies a one-dimensional ndarray `x` by a constant `alph ]); x = vector( xbuf, 2, 1, 0 ); y = vector( ybuf, 2, 1, 0 ); - alpha = scalar2ndarray( new Complex64( 2.0, 2.0 ), 'complex64', 'row-major' ); + alpha = scalar2ndarray( new Complex64( 2.0, 2.0 ), { + 'dtype': 'complex64' + }); v = caxpy( [ x, y, alpha ] ); @@ -157,7 +161,9 @@ tape( 'if provided empty ndarrays, the function returns the output ndarray uncha ybuf = new Complex64Array( [] ); x = vector( xbuf, 0, 1, 0 ); y = vector( ybuf, 0, 1, 0 ); - alpha = scalar2ndarray( new Complex64( 1.0, 2.0 ), 'complex64', 'row-major' ); + alpha = scalar2ndarray( new Complex64( 1.0, 2.0 ), { + 'dtype': 'complex64' + }); v = caxpy( [ x, y, alpha ] ); @@ -204,7 +210,9 @@ tape( 'the function supports one-dimensional ndarrays having non-unit strides', 1.0 ]); y = vector( ybuf, 3, 1, 0 ); - alpha = scalar2ndarray( new Complex64( 2.0, 2.0 ), 'complex64', 'row-major' ); + alpha = scalar2ndarray( new Complex64( 2.0, 2.0 ), { + 'dtype': 'complex64' + }); v = caxpy( [ x, y, alpha ] ); @@ -261,7 +269,9 @@ tape( 'the function supports one-dimensional ndarrays having negative strides', 10.0 ]); y = vector( ybuf, 3, -1, 2 ); - alpha = scalar2ndarray( new Complex64( 2.0, 2.0 ), 'complex64', 'row-major' ); + alpha = scalar2ndarray( new Complex64( 2.0, 2.0 ), { + 'dtype': 'complex64' + }); v = caxpy( [ x, y, alpha ] ); @@ -330,7 +340,9 @@ tape( 'the function supports one-dimensional ndarrays having non-zero offsets', 8.0 ]); y = vector( ybuf, 4, 1, 2 ); - alpha = scalar2ndarray( new Complex64( 2.0, 2.0 ), 'complex64', 'row-major' ); + alpha = scalar2ndarray( new Complex64( 2.0, 2.0 ), { + 'dtype': 'complex64' + }); v = caxpy( [ x, y, alpha ] ); diff --git a/lib/node_modules/@stdlib/blas/base/ndarray/ccopy/README.md b/lib/node_modules/@stdlib/blas/base/ndarray/ccopy/README.md index f0f912cdbf91..bce3007d7163 100644 --- a/lib/node_modules/@stdlib/blas/base/ndarray/ccopy/README.md +++ b/lib/node_modules/@stdlib/blas/base/ndarray/ccopy/README.md @@ -49,7 +49,7 @@ var y = new Complex64Vector( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] ); var z = ccopy( [ x, y ] ); // returns [ [ 1.0, 2.0 ], [ 3.0, 4.0 ], [ 5.0, 6.0 ] ] -var bool = ( y === z ); +var bool = ( z === y ); // returns true ``` diff --git a/lib/node_modules/@stdlib/blas/base/ndarray/daxpy/test/test.js b/lib/node_modules/@stdlib/blas/base/ndarray/daxpy/test/test.js index d403989434b2..458c19685ee1 100644 --- a/lib/node_modules/@stdlib/blas/base/ndarray/daxpy/test/test.js +++ b/lib/node_modules/@stdlib/blas/base/ndarray/daxpy/test/test.js @@ -23,7 +23,7 @@ var tape = require( 'tape' ); var isSameFloat64Array = require( '@stdlib/assert/is-same-float64array' ); var Float64Array = require( '@stdlib/array/float64' ); -var scalar2ndarray = require( '@stdlib/ndarray/base/from-scalar' ); +var scalar2ndarray = require( '@stdlib/ndarray/from-scalar' ); var ndarray = require( '@stdlib/ndarray/base/ctor' ); var getData = require( '@stdlib/ndarray/data-buffer' ); var daxpy = require( './../lib' ); @@ -72,7 +72,9 @@ tape( 'the function multiplies a one-dimensional ndarray `x` by a constant `alph ybuf = new Float64Array( [ 1.0, 1.0, 1.0, 1.0, 1.0 ] ); x = vector( xbuf, 5, 1, 0 ); y = vector( ybuf, 5, 1, 0 ); - alpha = scalar2ndarray( 2.0, 'float64', 'row-major' ); + alpha = scalar2ndarray( 2.0, { + 'dtype': 'float64' + }); v = daxpy( [ x, y, alpha ] ); @@ -84,7 +86,9 @@ tape( 'the function multiplies a one-dimensional ndarray `x` by a constant `alph ybuf = new Float64Array( [ 1.0, 1.0 ] ); x = vector( xbuf, 2, 1, 0 ); y = vector( ybuf, 2, 1, 0 ); - alpha = scalar2ndarray( 2.0, 'float64', 'row-major' ); + alpha = scalar2ndarray( 2.0, { + 'dtype': 'float64' + }); v = daxpy( [ x, y, alpha ] ); @@ -108,7 +112,9 @@ tape( 'if provided empty ndarrays, the function returns the output ndarray uncha ybuf = new Float64Array( [] ); x = vector( xbuf, 0, 1, 0 ); y = vector( ybuf, 0, 1, 0 ); - alpha = scalar2ndarray( 5.0, 'float64', 'row-major' ); + alpha = scalar2ndarray( 5.0, { + 'dtype': 'float64' + }); v = daxpy( [ x, y, alpha ] ); @@ -145,7 +151,9 @@ tape( 'the function supports one-dimensional ndarrays having non-unit strides', 1.0 ]); y = vector( ybuf, 3, 1, 0 ); - alpha = scalar2ndarray( 2.0, 'float64', 'row-major' ); + alpha = scalar2ndarray( 2.0, { + 'dtype': 'float64' + }); v = daxpy( [ x, y, alpha ] ); @@ -181,7 +189,9 @@ tape( 'the function supports one-dimensional ndarrays having negative strides', 10.0 ]); y = vector( ybuf, 3, -1, 2 ); - alpha = scalar2ndarray( 3.0, 'float64', 'row-major' ); + alpha = scalar2ndarray( 3.0, { + 'dtype': 'float64' + }); v = daxpy( [ x, y, alpha ] ); @@ -223,7 +233,9 @@ tape( 'the function supports one-dimensional ndarrays having non-zero offsets', 8.0 ]); y = vector( ybuf, 4, 1, 2 ); - alpha = scalar2ndarray( 3.0, 'float64', 'row-major' ); + alpha = scalar2ndarray( 3.0, { + 'dtype': 'float64' + }); v = daxpy( [ x, y, alpha ] ); diff --git a/lib/node_modules/@stdlib/blas/base/ndarray/dswap/README.md b/lib/node_modules/@stdlib/blas/base/ndarray/dswap/README.md index adfc4131bd23..df0735c17a5a 100644 --- a/lib/node_modules/@stdlib/blas/base/ndarray/dswap/README.md +++ b/lib/node_modules/@stdlib/blas/base/ndarray/dswap/README.md @@ -54,7 +54,7 @@ var z = dswap( [ x, y ] ); // x => [ 6.0, 7.0, 8.0, 9.0, 10.0 ] // y => [ 1.0, 2.0, 3.0, 4.0, 5.0 ] -var bool = ( y === z ); +var bool = ( z === y ); // returns true ``` diff --git a/lib/node_modules/@stdlib/blas/base/ndarray/gaxpy/test/test.js b/lib/node_modules/@stdlib/blas/base/ndarray/gaxpy/test/test.js index b2d28786b4b6..934e152369bd 100644 --- a/lib/node_modules/@stdlib/blas/base/ndarray/gaxpy/test/test.js +++ b/lib/node_modules/@stdlib/blas/base/ndarray/gaxpy/test/test.js @@ -22,7 +22,7 @@ var tape = require( 'tape' ); var isSameArray = require( '@stdlib/assert/is-same-array' ); -var scalar2ndarray = require( '@stdlib/ndarray/base/from-scalar' ); +var scalar2ndarray = require( '@stdlib/ndarray/from-scalar' ); var ndarray = require( '@stdlib/ndarray/base/ctor' ); var getData = require( '@stdlib/ndarray/data-buffer' ); var gaxpy = require( './../lib' ); @@ -71,7 +71,9 @@ tape( 'the function multiplies a one-dimensional ndarray `x` by a constant `alph ybuf = [ 1.0, 1.0, 1.0, 1.0, 1.0 ]; x = vector( xbuf, 5, 1, 0 ); y = vector( ybuf, 5, 1, 0 ); - alpha = scalar2ndarray( 2.0, 'generic', 'row-major' ); + alpha = scalar2ndarray( 2.0, { + 'dtype': 'generic' + }); v = gaxpy( [ x, y, alpha ] ); @@ -83,7 +85,9 @@ tape( 'the function multiplies a one-dimensional ndarray `x` by a constant `alph ybuf = [ 1.0, 1.0 ]; x = vector( xbuf, 2, 1, 0 ); y = vector( ybuf, 2, 1, 0 ); - alpha = scalar2ndarray( 2.0, 'generic', 'row-major' ); + alpha = scalar2ndarray( 2.0, { + 'dtype': 'generic' + }); v = gaxpy( [ x, y, alpha ] ); @@ -107,7 +111,9 @@ tape( 'if provided empty ndarrays, the function returns the output ndarray uncha ybuf = []; x = vector( xbuf, 0, 1, 0 ); y = vector( ybuf, 0, 1, 0 ); - alpha = scalar2ndarray( 5.0, 'generic', 'row-major' ); + alpha = scalar2ndarray( 5.0, { + 'dtype': 'generic' + }); v = gaxpy( [ x, y, alpha ] ); @@ -144,7 +150,9 @@ tape( 'the function supports one-dimensional ndarrays having non-unit strides', 1.0 ]; y = vector( ybuf, 3, 1, 0 ); - alpha = scalar2ndarray( 2.0, 'generic', 'row-major' ); + alpha = scalar2ndarray( 2.0, { + 'dtype': 'generic' + }); v = gaxpy( [ x, y, alpha ] ); @@ -180,7 +188,9 @@ tape( 'the function supports one-dimensional ndarrays having negative strides', 10.0 ]; y = vector( ybuf, 3, -1, 2 ); - alpha = scalar2ndarray( 3.0, 'generic', 'row-major' ); + alpha = scalar2ndarray( 3.0, { + 'dtype': 'generic' + }); v = gaxpy( [ x, y, alpha ] ); @@ -222,7 +232,9 @@ tape( 'the function supports one-dimensional ndarrays having non-zero offsets', 8.0 ]; y = vector( ybuf, 4, 1, 2 ); - alpha = scalar2ndarray( 3.0, 'generic', 'row-major' ); + alpha = scalar2ndarray( 3.0, { + 'dtype': 'generic' + }); v = gaxpy( [ x, y, alpha ] ); diff --git a/lib/node_modules/@stdlib/blas/base/ndarray/saxpy/test/test.js b/lib/node_modules/@stdlib/blas/base/ndarray/saxpy/test/test.js index 0b5f00f17969..532dfc7d24b7 100644 --- a/lib/node_modules/@stdlib/blas/base/ndarray/saxpy/test/test.js +++ b/lib/node_modules/@stdlib/blas/base/ndarray/saxpy/test/test.js @@ -23,7 +23,7 @@ var tape = require( 'tape' ); var isSameFloat32Array = require( '@stdlib/assert/is-same-float32array' ); var Float32Array = require( '@stdlib/array/float32' ); -var scalar2ndarray = require( '@stdlib/ndarray/base/from-scalar' ); +var scalar2ndarray = require( '@stdlib/ndarray/from-scalar' ); var ndarray = require( '@stdlib/ndarray/base/ctor' ); var getData = require( '@stdlib/ndarray/data-buffer' ); var saxpy = require( './../lib' ); @@ -72,7 +72,9 @@ tape( 'the function multiplies a one-dimensional ndarray `x` by a constant `alph ybuf = new Float32Array( [ 1.0, 1.0, 1.0, 1.0, 1.0 ] ); x = vector( xbuf, 5, 1, 0 ); y = vector( ybuf, 5, 1, 0 ); - alpha = scalar2ndarray( 2.0, 'float32', 'row-major' ); + alpha = scalar2ndarray( 2.0, { + 'dtype': 'float32' + }); v = saxpy( [ x, y, alpha ] ); @@ -84,7 +86,9 @@ tape( 'the function multiplies a one-dimensional ndarray `x` by a constant `alph ybuf = new Float32Array( [ 1.0, 1.0 ] ); x = vector( xbuf, 2, 1, 0 ); y = vector( ybuf, 2, 1, 0 ); - alpha = scalar2ndarray( 2.0, 'float32', 'row-major' ); + alpha = scalar2ndarray( 2.0, { + 'dtype': 'float32' + }); v = saxpy( [ x, y, alpha ] ); @@ -108,7 +112,9 @@ tape( 'if provided empty ndarrays, the function returns the output ndarray uncha ybuf = new Float32Array( [] ); x = vector( xbuf, 0, 1, 0 ); y = vector( ybuf, 0, 1, 0 ); - alpha = scalar2ndarray( 5.0, 'float32', 'row-major' ); + alpha = scalar2ndarray( 5.0, { + 'dtype': 'float32' + }); v = saxpy( [ x, y, alpha ] ); @@ -145,7 +151,9 @@ tape( 'the function supports one-dimensional ndarrays having non-unit strides', 1.0 ]); y = vector( ybuf, 3, 1, 0 ); - alpha = scalar2ndarray( 2.0, 'float32', 'row-major' ); + alpha = scalar2ndarray( 2.0, { + 'dtype': 'float32' + }); v = saxpy( [ x, y, alpha ] ); @@ -181,7 +189,9 @@ tape( 'the function supports one-dimensional ndarrays having negative strides', 10.0 ]); y = vector( ybuf, 3, -1, 2 ); - alpha = scalar2ndarray( 3.0, 'float32', 'row-major' ); + alpha = scalar2ndarray( 3.0, { + 'dtype': 'float32' + }); v = saxpy( [ x, y, alpha ] ); @@ -223,7 +233,9 @@ tape( 'the function supports one-dimensional ndarrays having non-zero offsets', 8.0 ]); y = vector( ybuf, 4, 1, 2 ); - alpha = scalar2ndarray( 3.0, 'float32', 'row-major' ); + alpha = scalar2ndarray( 3.0, { + 'dtype': 'float32' + }); v = saxpy( [ x, y, alpha ] ); diff --git a/lib/node_modules/@stdlib/blas/base/ndarray/zaxpy/README.md b/lib/node_modules/@stdlib/blas/base/ndarray/zaxpy/README.md index e50053c7cb4e..c38b0582ae42 100644 --- a/lib/node_modules/@stdlib/blas/base/ndarray/zaxpy/README.md +++ b/lib/node_modules/@stdlib/blas/base/ndarray/zaxpy/README.md @@ -54,7 +54,7 @@ var alpha = scalar2ndarray( new Complex128( 1.0, 2.0 ), { var z = zaxpy( [ x, y, alpha ] ); // returns [ [ -2.0, 5.0 ], [ -4.0, 11.0 ], [ -6.0, 17.0 ] ] -var bool = ( y === z ); +var bool = ( z === y ); // returns true ``` diff --git a/lib/node_modules/@stdlib/blas/base/ndarray/zaxpy/test/test.js b/lib/node_modules/@stdlib/blas/base/ndarray/zaxpy/test/test.js index be00cd2f5893..bda1d3186c25 100644 --- a/lib/node_modules/@stdlib/blas/base/ndarray/zaxpy/test/test.js +++ b/lib/node_modules/@stdlib/blas/base/ndarray/zaxpy/test/test.js @@ -24,7 +24,7 @@ var tape = require( 'tape' ); var isSameComplex128Array = require( '@stdlib/assert/is-same-complex128array' ); var Complex128Array = require( '@stdlib/array/complex128' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var scalar2ndarray = require( '@stdlib/ndarray/base/from-scalar' ); +var scalar2ndarray = require( '@stdlib/ndarray/from-scalar' ); var ndarray = require( '@stdlib/ndarray/base/ctor' ); var getData = require( '@stdlib/ndarray/data-buffer' ); var zaxpy = require( './../lib' ); @@ -95,7 +95,9 @@ tape( 'the function multiplies a one-dimensional ndarray `x` by a constant `alph ]); x = vector( xbuf, 5, 1, 0 ); y = vector( ybuf, 5, 1, 0 ); - alpha = scalar2ndarray( new Complex128( 2.0, 2.0 ), 'complex128', 'row-major' ); + alpha = scalar2ndarray( new Complex128( 2.0, 2.0 ), { + 'dtype': 'complex128' + }); v = zaxpy( [ x, y, alpha ] ); @@ -128,7 +130,9 @@ tape( 'the function multiplies a one-dimensional ndarray `x` by a constant `alph ]); x = vector( xbuf, 2, 1, 0 ); y = vector( ybuf, 2, 1, 0 ); - alpha = scalar2ndarray( new Complex128( 2.0, 2.0 ), 'complex128', 'row-major' ); + alpha = scalar2ndarray( new Complex128( 2.0, 2.0 ), { + 'dtype': 'complex128' + }); v = zaxpy( [ x, y, alpha ] ); @@ -157,7 +161,9 @@ tape( 'if provided empty ndarrays, the function returns the output ndarray uncha ybuf = new Complex128Array( [] ); x = vector( xbuf, 0, 1, 0 ); y = vector( ybuf, 0, 1, 0 ); - alpha = scalar2ndarray( new Complex128( 1.0, 2.0 ), 'complex128', 'row-major' ); + alpha = scalar2ndarray( new Complex128( 1.0, 2.0 ), { + 'dtype': 'complex128' + }); v = zaxpy( [ x, y, alpha ] ); @@ -204,7 +210,9 @@ tape( 'the function supports one-dimensional ndarrays having non-unit strides', 1.0 ]); y = vector( ybuf, 3, 1, 0 ); - alpha = scalar2ndarray( new Complex128( 2.0, 2.0 ), 'complex128', 'row-major' ); + alpha = scalar2ndarray( new Complex128( 2.0, 2.0 ), { + 'dtype': 'complex128' + }); v = zaxpy( [ x, y, alpha ] ); @@ -261,7 +269,9 @@ tape( 'the function supports one-dimensional ndarrays having negative strides', 10.0 ]); y = vector( ybuf, 3, -1, 2 ); - alpha = scalar2ndarray( new Complex128( 2.0, 2.0 ), 'complex128', 'row-major' ); + alpha = scalar2ndarray( new Complex128( 2.0, 2.0 ), { + 'dtype': 'complex128' + }); v = zaxpy( [ x, y, alpha ] ); @@ -330,7 +340,9 @@ tape( 'the function supports one-dimensional ndarrays having non-zero offsets', 8.0 ]); y = vector( ybuf, 4, 1, 2 ); - alpha = scalar2ndarray( new Complex128( 2.0, 2.0 ), 'complex128', 'row-major' ); + alpha = scalar2ndarray( new Complex128( 2.0, 2.0 ), { + 'dtype': 'complex128' + }); v = zaxpy( [ x, y, alpha ] ); diff --git a/lib/node_modules/@stdlib/blas/base/ndarray/zcopy/README.md b/lib/node_modules/@stdlib/blas/base/ndarray/zcopy/README.md index c521a821aad6..a9de7490d4ec 100644 --- a/lib/node_modules/@stdlib/blas/base/ndarray/zcopy/README.md +++ b/lib/node_modules/@stdlib/blas/base/ndarray/zcopy/README.md @@ -49,7 +49,7 @@ var y = new Complex128Vector( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] ); var z = zcopy( [ x, y ] ); // returns [ [ 1.0, 2.0 ], [ 3.0, 4.0 ], [ 5.0, 6.0 ] ] -var bool = ( y === z ); +var bool = ( z === y ); // returns true ```