diff --git a/lib/node_modules/@stdlib/blas/base/ccopy/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/base/ccopy/benchmark/benchmark.js index 5c120645fb5..8cec4ce5f6e 100644 --- a/lib/node_modules/@stdlib/blas/base/ccopy/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/base/ccopy/benchmark/benchmark.js @@ -21,8 +21,7 @@ // MODULES // var bench = require( '@stdlib/bench' ); -var uniform = require( '@stdlib/random/base/uniform' ).factory; -var filledarrayBy = require( '@stdlib/array/filled-by' ); +var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var Complex64Array = require( '@stdlib/array/complex64' ); @@ -33,7 +32,9 @@ var ccopy = require( './../lib/ccopy.js' ); // VARIABLES // -var rand = uniform( -100.0, 100.0 ); +var options = { + 'dtype': 'float32' +}; // FUNCTIONS // @@ -50,7 +51,7 @@ function createBenchmark( len ) { var x; var y; - x = filledarrayBy( len*2, 'float32', rand ); + x = uniform( len*2, -100.0, 100.0, options ); x = new Complex64Array( x.buffer ); y = new Complex64Array( len ); diff --git a/lib/node_modules/@stdlib/blas/base/ccopy/benchmark/benchmark.native.js b/lib/node_modules/@stdlib/blas/base/ccopy/benchmark/benchmark.native.js index 8d8c67e21e8..6c4e99a041f 100644 --- a/lib/node_modules/@stdlib/blas/base/ccopy/benchmark/benchmark.native.js +++ b/lib/node_modules/@stdlib/blas/base/ccopy/benchmark/benchmark.native.js @@ -22,8 +22,7 @@ var resolve = require( 'path' ).resolve; var bench = require( '@stdlib/bench' ); -var uniform = require( '@stdlib/random/base/uniform' ).factory; -var filledarrayBy = require( '@stdlib/array/filled-by' ); +var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var Complex64Array = require( '@stdlib/array/complex64' ); @@ -38,7 +37,9 @@ var ccopy = tryRequire( resolve( __dirname, './../lib/ccopy.native.js' ) ); var opts = { 'skip': ( ccopy instanceof Error ) }; -var rand = uniform( -100.0, 100.0 ); +var options = { + 'dtype': 'float32' +}; // FUNCTIONS // @@ -55,7 +56,7 @@ function createBenchmark( len ) { var x; var y; - x = filledarrayBy( len*2, 'float32', rand ); + x = uniform( len*2, -100.0, 100.0, options ); x = new Complex64Array( x.buffer ); y = new Complex64Array( len ); diff --git a/lib/node_modules/@stdlib/blas/base/ccopy/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/base/ccopy/benchmark/benchmark.ndarray.js index ff1a912a041..2a96afec67e 100644 --- a/lib/node_modules/@stdlib/blas/base/ccopy/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/base/ccopy/benchmark/benchmark.ndarray.js @@ -21,8 +21,7 @@ // MODULES // var bench = require( '@stdlib/bench' ); -var uniform = require( '@stdlib/random/base/uniform' ).factory; -var filledarrayBy = require( '@stdlib/array/filled-by' ); +var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var Complex64Array = require( '@stdlib/array/complex64' ); @@ -33,7 +32,9 @@ var ccopy = require( './../lib/ndarray.js' ); // VARIABLES // -var rand = uniform( -100.0, 100.0 ); +var options = { + 'dtype': 'float32' +}; // FUNCTIONS // @@ -50,7 +51,7 @@ function createBenchmark( len ) { var x; var y; - x = filledarrayBy( len*2, 'float32', rand ); + x = uniform( len*2, -100.0, 100.0, options ); x = new Complex64Array( x.buffer ); y = new Complex64Array( len ); diff --git a/lib/node_modules/@stdlib/blas/base/ccopy/benchmark/benchmark.ndarray.native.js b/lib/node_modules/@stdlib/blas/base/ccopy/benchmark/benchmark.ndarray.native.js index 14dffc1949d..c539cc9a2ab 100644 --- a/lib/node_modules/@stdlib/blas/base/ccopy/benchmark/benchmark.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/base/ccopy/benchmark/benchmark.ndarray.native.js @@ -22,8 +22,7 @@ var resolve = require( 'path' ).resolve; var bench = require( '@stdlib/bench' ); -var uniform = require( '@stdlib/random/base/uniform' ).factory; -var filledarrayBy = require( '@stdlib/array/filled-by' ); +var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var Complex64Array = require( '@stdlib/array/complex64' ); @@ -38,7 +37,9 @@ var ccopy = tryRequire( resolve( __dirname, './../lib/ndarray.native.js' ) ); var opts = { 'skip': ( ccopy instanceof Error ) }; -var rand = uniform( -100.0, 100.0 ); +var options = { + 'dtype': 'float32' +}; // FUNCTIONS // @@ -55,7 +56,7 @@ function createBenchmark( len ) { var x; var y; - x = filledarrayBy( len*2, 'float32', rand ); + x = uniform( len*2, -100.0, 100.0, options ); x = new Complex64Array( x.buffer ); y = new Complex64Array( len ); diff --git a/lib/node_modules/@stdlib/blas/base/cswap/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/base/cswap/benchmark/benchmark.js index 8ad070b6b61..c519ed4a004 100644 --- a/lib/node_modules/@stdlib/blas/base/cswap/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/base/cswap/benchmark/benchmark.js @@ -21,8 +21,7 @@ // MODULES // var bench = require( '@stdlib/bench' ); -var uniform = require( '@stdlib/random/base/uniform' ).factory; -var filledarrayBy = require( '@stdlib/array/filled-by' ); +var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var Complex64Array = require( '@stdlib/array/complex64' ); @@ -33,7 +32,9 @@ var cswap = require( './../lib/cswap.js' ); // VARIABLES // -var rand = uniform( -100.0, 100.0 ); +var options = { + 'dtype': 'float32' +}; // FUNCTIONS // @@ -50,7 +51,7 @@ function createBenchmark( len ) { var x; var y; - x = filledarrayBy( len*2, 'float32', rand ); + x = uniform( len*2, -100.0, 100.0, options ); x = new Complex64Array( x.buffer ); y = new Complex64Array( len ); diff --git a/lib/node_modules/@stdlib/blas/base/cswap/benchmark/benchmark.native.js b/lib/node_modules/@stdlib/blas/base/cswap/benchmark/benchmark.native.js index 69b1fc49e15..250ed05090e 100644 --- a/lib/node_modules/@stdlib/blas/base/cswap/benchmark/benchmark.native.js +++ b/lib/node_modules/@stdlib/blas/base/cswap/benchmark/benchmark.native.js @@ -22,8 +22,7 @@ var resolve = require( 'path' ).resolve; var bench = require( '@stdlib/bench' ); -var uniform = require( '@stdlib/random/base/uniform' ).factory; -var filledarrayBy = require( '@stdlib/array/filled-by' ); +var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var Complex64Array = require( '@stdlib/array/complex64' ); @@ -38,7 +37,9 @@ var cswap = tryRequire( resolve( __dirname, './../lib/cswap.native.js' ) ); var opts = { 'skip': ( cswap instanceof Error ) }; -var rand = uniform( -100.0, 100.0 ); +var options = { + 'dtype': 'float32' +}; // FUNCTIONS // @@ -55,7 +56,7 @@ function createBenchmark( len ) { var x; var y; - x = filledarrayBy( len*2, 'float32', rand ); + x = uniform( len*2, -100.0, 100.0, options ); x = new Complex64Array( x.buffer ); y = new Complex64Array( len ); diff --git a/lib/node_modules/@stdlib/blas/base/cswap/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/base/cswap/benchmark/benchmark.ndarray.js index a83844d14d3..20f2c80d603 100644 --- a/lib/node_modules/@stdlib/blas/base/cswap/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/base/cswap/benchmark/benchmark.ndarray.js @@ -21,8 +21,7 @@ // MODULES // var bench = require( '@stdlib/bench' ); -var uniform = require( '@stdlib/random/base/uniform' ).factory; -var filledarrayBy = require( '@stdlib/array/filled-by' ); +var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var Complex64Array = require( '@stdlib/array/complex64' ); @@ -33,7 +32,9 @@ var cswap = require( './../lib/ndarray.js' ); // VARIABLES // -var rand = uniform( -100.0, 100.0 ); +var options = { + 'dtype': 'float32' +}; // FUNCTIONS // @@ -50,7 +51,7 @@ function createBenchmark( len ) { var x; var y; - x = filledarrayBy( len*2, 'float32', rand ); + x = uniform( len*2, -100.0, 100.0, options ); x = new Complex64Array( x.buffer ); y = new Complex64Array( len ); diff --git a/lib/node_modules/@stdlib/blas/base/cswap/benchmark/benchmark.ndarray.native.js b/lib/node_modules/@stdlib/blas/base/cswap/benchmark/benchmark.ndarray.native.js index c8e86efa083..94336267dc0 100644 --- a/lib/node_modules/@stdlib/blas/base/cswap/benchmark/benchmark.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/base/cswap/benchmark/benchmark.ndarray.native.js @@ -22,8 +22,7 @@ var resolve = require( 'path' ).resolve; var bench = require( '@stdlib/bench' ); -var uniform = require( '@stdlib/random/base/uniform' ).factory; -var filledarrayBy = require( '@stdlib/array/filled-by' ); +var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var Complex64Array = require( '@stdlib/array/complex64' ); @@ -38,7 +37,9 @@ var cswap = tryRequire( resolve( __dirname, './../lib/ndarray.native.js' ) ); var opts = { 'skip': ( cswap instanceof Error ) }; -var rand = uniform( -100.0, 100.0 ); +var options = { + 'dtype': 'float32' +}; // FUNCTIONS // @@ -55,7 +56,7 @@ function createBenchmark( len ) { var x; var y; - x = filledarrayBy( len*2, 'float32', rand ); + x = uniform( len*2, -100.0, 100.0, options ); x = new Complex64Array( x.buffer ); y = new Complex64Array( len ); diff --git a/lib/node_modules/@stdlib/blas/base/dcopy/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/base/dcopy/benchmark/benchmark.js index ab4868a9f4e..2f84badf1cb 100644 --- a/lib/node_modules/@stdlib/blas/base/dcopy/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/base/dcopy/benchmark/benchmark.js @@ -21,8 +21,7 @@ // MODULES // var bench = require( '@stdlib/bench' ); -var uniform = require( '@stdlib/random/base/uniform' ).factory; -var filledarrayBy = require( '@stdlib/array/filled-by' ); +var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var pkg = require( './../package.json' ).name; @@ -31,7 +30,9 @@ var dcopy = require( './../lib/dcopy.js' ); // VARIABLES // -var rand = uniform( -10000.0, 10000.0 ); +var options = { + 'dtype': 'float64' +}; // FUNCTIONS // @@ -44,8 +45,8 @@ var rand = uniform( -10000.0, 10000.0 ); * @returns {Function} benchmark function */ function createBenchmark( len ) { - var x = filledarrayBy( len, 'float64', rand ); - var y = filledarrayBy( len, 'float64', rand ); + var x = uniform( len, -100.0, 100.0, options ); + var y = uniform( len, -100.0, 100.0, options ); return benchmark; /** diff --git a/lib/node_modules/@stdlib/blas/base/dcopy/benchmark/benchmark.native.js b/lib/node_modules/@stdlib/blas/base/dcopy/benchmark/benchmark.native.js index f47c977d187..58d168df1ad 100644 --- a/lib/node_modules/@stdlib/blas/base/dcopy/benchmark/benchmark.native.js +++ b/lib/node_modules/@stdlib/blas/base/dcopy/benchmark/benchmark.native.js @@ -22,8 +22,7 @@ var resolve = require( 'path' ).resolve; var bench = require( '@stdlib/bench' ); -var uniform = require( '@stdlib/random/base/uniform' ).factory; -var filledarrayBy = require( '@stdlib/array/filled-by' ); +var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var tryRequire = require( '@stdlib/utils/try-require' ); @@ -36,7 +35,9 @@ var dcopy = tryRequire( resolve( __dirname, './../lib/native.js' ) ); var opts = { 'skip': ( dcopy instanceof Error ) }; -var rand = uniform( -10000.0, 10000.0 ); +var options = { + 'dtype': 'float64' +}; // FUNCTIONS // @@ -49,8 +50,8 @@ var rand = uniform( -10000.0, 10000.0 ); * @returns {Function} benchmark function */ function createBenchmark( len ) { - var x = filledarrayBy( len, 'float64', rand ); - var y = filledarrayBy( len, 'float64', rand ); + var x = uniform( len, -100.0, 100.0, options ); + var y = uniform( len, -100.0, 100.0, options ); return benchmark; /** diff --git a/lib/node_modules/@stdlib/blas/base/dcopy/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/base/dcopy/benchmark/benchmark.ndarray.js index b73b1b26020..57043638f9f 100644 --- a/lib/node_modules/@stdlib/blas/base/dcopy/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/base/dcopy/benchmark/benchmark.ndarray.js @@ -21,8 +21,7 @@ // MODULES // var bench = require( '@stdlib/bench' ); -var uniform = require( '@stdlib/random/base/uniform' ).factory; -var filledarrayBy = require( '@stdlib/array/filled-by' ); +var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var pkg = require( './../package.json' ).name; @@ -31,7 +30,9 @@ var dcopy = require( './../lib/ndarray.js' ); // VARIABLES // -var rand = uniform( -10000.0, 10000.0 ); +var options = { + 'dtype': 'float64' +}; // FUNCTIONS // @@ -44,8 +45,8 @@ var rand = uniform( -10000.0, 10000.0 ); * @returns {Function} benchmark function */ function createBenchmark( len ) { - var x = filledarrayBy( len, 'float64', rand ); - var y = filledarrayBy( len, 'float64', rand ); + var x = uniform( len, -100.0, 100.0, options ); + var y = uniform( len, -100.0, 100.0, options ); return benchmark; /** diff --git a/lib/node_modules/@stdlib/blas/base/dcopy/benchmark/benchmark.ndarray.native.js b/lib/node_modules/@stdlib/blas/base/dcopy/benchmark/benchmark.ndarray.native.js index 421617e8cb0..758fc934c6b 100644 --- a/lib/node_modules/@stdlib/blas/base/dcopy/benchmark/benchmark.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/base/dcopy/benchmark/benchmark.ndarray.native.js @@ -22,8 +22,7 @@ var resolve = require( 'path' ).resolve; var bench = require( '@stdlib/bench' ); -var uniform = require( '@stdlib/random/base/uniform' ).factory; -var filledarrayBy = require( '@stdlib/array/filled-by' ); +var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var tryRequire = require( '@stdlib/utils/try-require' ); @@ -36,7 +35,9 @@ var dcopy = tryRequire( resolve( __dirname, './../lib/ndarray.native.js' ) ); var opts = { 'skip': ( dcopy instanceof Error ) }; -var rand = uniform( -10000.0, 10000.0 ); +var options = { + 'dtype': 'float64' +}; // FUNCTIONS // @@ -49,8 +50,8 @@ var rand = uniform( -10000.0, 10000.0 ); * @returns {Function} benchmark function */ function createBenchmark( len ) { - var x = filledarrayBy( len, 'float64', rand ); - var y = filledarrayBy( len, 'float64', rand ); + var x = uniform( len, -100.0, 100.0, options ); + var y = uniform( len, -100.0, 100.0, options ); return benchmark; /** diff --git a/lib/node_modules/@stdlib/blas/base/ddot/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/base/ddot/benchmark/benchmark.js index bf75f8f7fde..5ea45b32fb1 100644 --- a/lib/node_modules/@stdlib/blas/base/ddot/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/base/ddot/benchmark/benchmark.js @@ -21,8 +21,7 @@ // MODULES // var bench = require( '@stdlib/bench' ); -var uniform = require( '@stdlib/random/base/uniform' ).factory; -var filledarrayBy = require( '@stdlib/array/filled-by' ); +var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var pkg = require( './../package.json' ).name; @@ -31,7 +30,9 @@ var ddot = require( './../lib/ddot.js' ); // VARIABLES // -var rand = uniform( -100.0, 100.0 ); +var options = { + 'dtype': 'float64' +}; // FUNCTIONS // @@ -44,8 +45,8 @@ var rand = uniform( -100.0, 100.0 ); * @returns {Function} benchmark function */ function createBenchmark( len ) { - var x = filledarrayBy( len, 'float64', rand ); - var y = filledarrayBy( len, 'float64', rand ); + var x = uniform( len, -100.0, 100.0, options ); + var y = uniform( len, -100.0, 100.0, options ); return benchmark; function benchmark( b ) { diff --git a/lib/node_modules/@stdlib/blas/base/ddot/benchmark/benchmark.native.js b/lib/node_modules/@stdlib/blas/base/ddot/benchmark/benchmark.native.js index 25310be4de2..38580765dc4 100644 --- a/lib/node_modules/@stdlib/blas/base/ddot/benchmark/benchmark.native.js +++ b/lib/node_modules/@stdlib/blas/base/ddot/benchmark/benchmark.native.js @@ -22,8 +22,7 @@ var resolve = require( 'path' ).resolve; var bench = require( '@stdlib/bench' ); -var uniform = require( '@stdlib/random/base/uniform' ).factory; -var filledarrayBy = require( '@stdlib/array/filled-by' ); +var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var tryRequire = require( '@stdlib/utils/try-require' ); @@ -36,7 +35,9 @@ var ddot = tryRequire( resolve( __dirname, './../lib/ddot.native.js' ) ); var opts = { 'skip': ( ddot instanceof Error ) }; -var rand = uniform( -100.0, 100.0 ); +var options = { + 'dtype': 'float64' +}; // FUNCTIONS // @@ -49,8 +50,8 @@ var rand = uniform( -100.0, 100.0 ); * @returns {Function} benchmark function */ function createBenchmark( len ) { - var x = filledarrayBy( len, 'float64', rand ); - var y = filledarrayBy( len, 'float64', rand ); + var x = uniform( len, -100.0, 100.0, options ); + var y = uniform( len, -100.0, 100.0, options ); return benchmark; function benchmark( b ) { diff --git a/lib/node_modules/@stdlib/blas/base/ddot/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/base/ddot/benchmark/benchmark.ndarray.js index 7e5fc89ef65..58c6180ff43 100644 --- a/lib/node_modules/@stdlib/blas/base/ddot/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/base/ddot/benchmark/benchmark.ndarray.js @@ -21,8 +21,7 @@ // MODULES // var bench = require( '@stdlib/bench' ); -var uniform = require( '@stdlib/random/base/uniform' ).factory; -var filledarrayBy = require( '@stdlib/array/filled-by' ); +var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var pkg = require( './../package.json' ).name; @@ -31,7 +30,9 @@ var ddot = require( './../lib/ndarray.js' ); // VARIABLES // -var rand = uniform( -100.0, 100.0 ); +var options = { + 'dtype': 'float64' +}; // FUNCTIONS // @@ -44,8 +45,8 @@ var rand = uniform( -100.0, 100.0 ); * @returns {Function} benchmark function */ function createBenchmark( len ) { - var x = filledarrayBy( len, 'float64', rand ); - var y = filledarrayBy( len, 'float64', rand ); + var x = uniform( len, -100.0, 100.0, options ); + var y = uniform( len, -100.0, 100.0, options ); return benchmark; function benchmark( b ) { diff --git a/lib/node_modules/@stdlib/blas/base/ddot/benchmark/benchmark.ndarray.native.js b/lib/node_modules/@stdlib/blas/base/ddot/benchmark/benchmark.ndarray.native.js index 227f0e5df39..aabbc6dd17f 100644 --- a/lib/node_modules/@stdlib/blas/base/ddot/benchmark/benchmark.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/base/ddot/benchmark/benchmark.ndarray.native.js @@ -22,8 +22,7 @@ var resolve = require( 'path' ).resolve; var bench = require( '@stdlib/bench' ); -var uniform = require( '@stdlib/random/base/uniform' ).factory; -var filledarrayBy = require( '@stdlib/array/filled-by' ); +var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var tryRequire = require( '@stdlib/utils/try-require' ); @@ -36,7 +35,9 @@ var ddot = tryRequire( resolve( __dirname, './../lib/ndarray.native.js' ) ); var opts = { 'skip': ( ddot instanceof Error ) }; -var rand = uniform( -100.0, 100.0 ); +var options = { + 'dtype': 'float64' +}; // FUNCTIONS // @@ -49,8 +50,8 @@ var rand = uniform( -100.0, 100.0 ); * @returns {Function} benchmark function */ function createBenchmark( len ) { - var x = filledarrayBy( len, 'float64', rand ); - var y = filledarrayBy( len, 'float64', rand ); + var x = uniform( len, -100.0, 100.0, options ); + var y = uniform( len, -100.0, 100.0, options ); return benchmark; function benchmark( b ) { diff --git a/lib/node_modules/@stdlib/blas/base/dnrm2/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/base/dnrm2/benchmark/benchmark.js index 3fa7ea03c99..2d45939e24f 100644 --- a/lib/node_modules/@stdlib/blas/base/dnrm2/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/base/dnrm2/benchmark/benchmark.js @@ -21,8 +21,7 @@ // MODULES // var bench = require( '@stdlib/bench' ); -var uniform = require( '@stdlib/random/base/uniform' ).factory; -var filledarrayBy = require( '@stdlib/array/filled-by' ); +var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var pkg = require( './../package.json' ).name; @@ -31,7 +30,9 @@ var dnrm2 = require( './../lib/dnrm2.js' ); // VARIABLES // -var rand = uniform( -100.0, 100.0 ); +var options = { + 'dtype': 'float64' +}; // FUNCTIONS // @@ -44,7 +45,7 @@ var rand = uniform( -100.0, 100.0 ); * @returns {Function} benchmark function */ function createBenchmark( len ) { - var x = filledarrayBy( len, 'float64', rand ); + var x = uniform( len, -100.0, 100.0, options ); return benchmark; function benchmark( b ) { diff --git a/lib/node_modules/@stdlib/blas/base/dnrm2/benchmark/benchmark.native.js b/lib/node_modules/@stdlib/blas/base/dnrm2/benchmark/benchmark.native.js index c9df42d81c3..152b8d5020c 100644 --- a/lib/node_modules/@stdlib/blas/base/dnrm2/benchmark/benchmark.native.js +++ b/lib/node_modules/@stdlib/blas/base/dnrm2/benchmark/benchmark.native.js @@ -22,8 +22,7 @@ var resolve = require( 'path' ).resolve; var bench = require( '@stdlib/bench' ); -var uniform = require( '@stdlib/random/base/uniform' ).factory; -var filledarrayBy = require( '@stdlib/array/filled-by' ); +var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var tryRequire = require( '@stdlib/utils/try-require' ); @@ -36,7 +35,9 @@ var dnrm2 = tryRequire( resolve( __dirname, './../lib/dnrm2.native.js' ) ); var opts = { 'skip': ( dnrm2 instanceof Error ) }; -var rand = uniform( -100.0, 100.0 ); +var options = { + 'dtype': 'float64' +}; // FUNCTIONS // @@ -49,7 +50,7 @@ var rand = uniform( -100.0, 100.0 ); * @returns {Function} benchmark function */ function createBenchmark( len ) { - var x = filledarrayBy( len, 'float64', rand ); + var x = uniform( len, -100.0, 100.0, options ); return benchmark; function benchmark( b ) { diff --git a/lib/node_modules/@stdlib/blas/base/dnrm2/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/base/dnrm2/benchmark/benchmark.ndarray.js index 4bcdf184fbe..fcaa0e3ee5f 100644 --- a/lib/node_modules/@stdlib/blas/base/dnrm2/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/base/dnrm2/benchmark/benchmark.ndarray.js @@ -21,8 +21,7 @@ // MODULES // var bench = require( '@stdlib/bench' ); -var uniform = require( '@stdlib/random/base/uniform' ).factory; -var filledarrayBy = require( '@stdlib/array/filled-by' ); +var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var pkg = require( './../package.json' ).name; @@ -31,7 +30,9 @@ var dnrm2 = require( './../lib/ndarray.js' ); // VARIABLES // -var rand = uniform( -100.0, 100.0 ); +var options = { + 'dtype': 'float64' +}; // FUNCTIONS // @@ -44,7 +45,7 @@ var rand = uniform( -100.0, 100.0 ); * @returns {Function} benchmark function */ function createBenchmark( len ) { - var x = filledarrayBy( len, 'float64', rand ); + var x = uniform( len, -100.0, 100.0, options ); return benchmark; function benchmark( b ) { diff --git a/lib/node_modules/@stdlib/blas/base/dnrm2/benchmark/benchmark.ndarray.native.js b/lib/node_modules/@stdlib/blas/base/dnrm2/benchmark/benchmark.ndarray.native.js index 536f53af35d..5760719988a 100644 --- a/lib/node_modules/@stdlib/blas/base/dnrm2/benchmark/benchmark.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/base/dnrm2/benchmark/benchmark.ndarray.native.js @@ -22,8 +22,7 @@ var resolve = require( 'path' ).resolve; var bench = require( '@stdlib/bench' ); -var uniform = require( '@stdlib/random/base/uniform' ).factory; -var filledarrayBy = require( '@stdlib/array/filled-by' ); +var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var tryRequire = require( '@stdlib/utils/try-require' ); @@ -36,7 +35,9 @@ var dnrm2 = tryRequire( resolve( __dirname, './../lib/ndarray.native.js' ) ); var opts = { 'skip': ( dnrm2 instanceof Error ) }; -var rand = uniform( -100.0, 100.0 ); +var options = { + 'dtype': 'float64' +}; // FUNCTIONS // @@ -49,7 +50,7 @@ var rand = uniform( -100.0, 100.0 ); * @returns {Function} benchmark function */ function createBenchmark( len ) { - var x = filledarrayBy( len, 'float64', rand ); + var x = uniform( len, -100.0, 100.0, options ); return benchmark; function benchmark( b ) { diff --git a/lib/node_modules/@stdlib/blas/base/dscal/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/base/dscal/benchmark/benchmark.js index 0938ee00d8e..b90207cf16d 100644 --- a/lib/node_modules/@stdlib/blas/base/dscal/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/base/dscal/benchmark/benchmark.js @@ -21,8 +21,7 @@ // MODULES // var bench = require( '@stdlib/bench' ); -var uniform = require( '@stdlib/random/base/uniform' ).factory; -var filledarrayBy = require( '@stdlib/array/filled-by' ); +var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var pkg = require( './../package.json' ).name; @@ -31,7 +30,9 @@ var dscal = require( './../lib/dscal.js' ); // VARIABLES // -var rand = uniform( -100.0, 100.0 ); +var options = { + 'dtype': 'float64' +}; // FUNCTIONS // @@ -44,7 +45,7 @@ var rand = uniform( -100.0, 100.0 ); * @returns {Function} benchmark function */ function createBenchmark( len ) { - var x = filledarrayBy( len, 'float64', rand ); + var x = uniform( len, -100.0, 100.0, options ); return benchmark; function benchmark( b ) { diff --git a/lib/node_modules/@stdlib/blas/base/dscal/benchmark/benchmark.native.js b/lib/node_modules/@stdlib/blas/base/dscal/benchmark/benchmark.native.js index 6d118ff4fd0..6c6fc07aa11 100644 --- a/lib/node_modules/@stdlib/blas/base/dscal/benchmark/benchmark.native.js +++ b/lib/node_modules/@stdlib/blas/base/dscal/benchmark/benchmark.native.js @@ -22,8 +22,7 @@ var resolve = require( 'path' ).resolve; var bench = require( '@stdlib/bench' ); -var uniform = require( '@stdlib/random/base/uniform' ).factory; -var filledarrayBy = require( '@stdlib/array/filled-by' ); +var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var tryRequire = require( '@stdlib/utils/try-require' ); @@ -36,7 +35,9 @@ var dscal = tryRequire( resolve( __dirname, './../lib/dscal.native.js' ) ); var opts = { 'skip': ( dscal instanceof Error ) }; -var rand = uniform( -100.0, 100.0 ); +var options = { + 'dtype': 'float64' +}; // FUNCTIONS // @@ -49,7 +50,7 @@ var rand = uniform( -100.0, 100.0 ); * @returns {Function} benchmark function */ function createBenchmark( len ) { - var x = filledarrayBy( len, 'float64', rand ); + var x = uniform( len, -100.0, 100.0, options ); return benchmark; function benchmark( b ) { diff --git a/lib/node_modules/@stdlib/blas/base/dscal/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/base/dscal/benchmark/benchmark.ndarray.js index 85d8a40b86b..f2e6b8d7db4 100644 --- a/lib/node_modules/@stdlib/blas/base/dscal/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/base/dscal/benchmark/benchmark.ndarray.js @@ -21,8 +21,7 @@ // MODULES // var bench = require( '@stdlib/bench' ); -var uniform = require( '@stdlib/random/base/uniform' ).factory; -var filledarrayBy = require( '@stdlib/array/filled-by' ); +var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var pkg = require( './../package.json' ).name; @@ -31,7 +30,9 @@ var dscal = require( './../lib/ndarray.js' ); // VARIABLES // -var rand = uniform( -100.0, 100.0 ); +var options = { + 'dtype': 'float64' +}; // FUNCTIONS // @@ -44,7 +45,7 @@ var rand = uniform( -100.0, 100.0 ); * @returns {Function} benchmark function */ function createBenchmark( len ) { - var x = filledarrayBy( len, 'float64', rand ); + var x = uniform( len, -100.0, 100.0, options ); return benchmark; function benchmark( b ) { diff --git a/lib/node_modules/@stdlib/blas/base/dscal/benchmark/benchmark.ndarray.native.js b/lib/node_modules/@stdlib/blas/base/dscal/benchmark/benchmark.ndarray.native.js index 49ea54a82c1..dd2f7b13088 100644 --- a/lib/node_modules/@stdlib/blas/base/dscal/benchmark/benchmark.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/base/dscal/benchmark/benchmark.ndarray.native.js @@ -22,8 +22,7 @@ var resolve = require( 'path' ).resolve; var bench = require( '@stdlib/bench' ); -var uniform = require( '@stdlib/random/base/uniform' ).factory; -var filledarrayBy = require( '@stdlib/array/filled-by' ); +var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var tryRequire = require( '@stdlib/utils/try-require' ); @@ -36,7 +35,9 @@ var dscal = tryRequire( resolve( __dirname, './../lib/ndarray.native.js' ) ); var opts = { 'skip': ( dscal instanceof Error ) }; -var rand = uniform( -100.0, 100.0 ); +var options = { + 'dtype': 'float64' +}; // FUNCTIONS // @@ -49,7 +50,7 @@ var rand = uniform( -100.0, 100.0 ); * @returns {Function} benchmark function */ function createBenchmark( len ) { - var x = filledarrayBy( len, 'float64', rand ); + var x = uniform( len, -100.0, 100.0, options ); return benchmark; function benchmark( b ) { diff --git a/lib/node_modules/@stdlib/blas/base/dsdot/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/base/dsdot/benchmark/benchmark.js index 9524e72d40a..4d34125b0cc 100644 --- a/lib/node_modules/@stdlib/blas/base/dsdot/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/base/dsdot/benchmark/benchmark.js @@ -21,8 +21,7 @@ // MODULES // var bench = require( '@stdlib/bench' ); -var uniform = require( '@stdlib/random/base/uniform' ).factory; -var filledarrayBy = require( '@stdlib/array/filled-by' ); +var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var pkg = require( './../package.json' ).name; @@ -31,7 +30,9 @@ var dsdot = require( './../lib/dsdot.js' ); // VARIABLES // -var rand = uniform( -100.0, 100.0 ); +var options = { + 'dtype': 'float32' +}; // FUNCTIONS // @@ -44,8 +45,8 @@ var rand = uniform( -100.0, 100.0 ); * @returns {Function} benchmark function */ function createBenchmark( len ) { - var x = filledarrayBy( len, 'float32', rand ); - var y = filledarrayBy( len, 'float32', rand ); + var x = uniform( len, -100.0, 100.0, options ); + var y = uniform( len, -100.0, 100.0, options ); return benchmark; function benchmark( b ) { diff --git a/lib/node_modules/@stdlib/blas/base/dsdot/benchmark/benchmark.native.js b/lib/node_modules/@stdlib/blas/base/dsdot/benchmark/benchmark.native.js index e5853d2d941..5c630ed809a 100644 --- a/lib/node_modules/@stdlib/blas/base/dsdot/benchmark/benchmark.native.js +++ b/lib/node_modules/@stdlib/blas/base/dsdot/benchmark/benchmark.native.js @@ -22,8 +22,7 @@ var resolve = require( 'path' ).resolve; var bench = require( '@stdlib/bench' ); -var uniform = require( '@stdlib/random/base/uniform' ).factory; -var filledarrayBy = require( '@stdlib/array/filled-by' ); +var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var tryRequire = require( '@stdlib/utils/try-require' ); @@ -36,7 +35,9 @@ var dsdot = tryRequire( resolve( __dirname, './../lib/dsdot.native.js' ) ); var opts = { 'skip': ( dsdot instanceof Error ) }; -var rand = uniform( -100.0, 100.0 ); +var options = { + 'dtype': 'float32' +}; // FUNCTIONS // @@ -49,8 +50,8 @@ var rand = uniform( -100.0, 100.0 ); * @returns {Function} benchmark function */ function createBenchmark( len ) { - var x = filledarrayBy( len, 'float32', rand ); - var y = filledarrayBy( len, 'float32', rand ); + var x = uniform( len, -100.0, 100.0, options ); + var y = uniform( len, -100.0, 100.0, options ); return benchmark; function benchmark( b ) { diff --git a/lib/node_modules/@stdlib/blas/base/dsdot/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/base/dsdot/benchmark/benchmark.ndarray.js index 824dd1d4eb9..658ff7cf132 100644 --- a/lib/node_modules/@stdlib/blas/base/dsdot/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/base/dsdot/benchmark/benchmark.ndarray.js @@ -21,8 +21,7 @@ // MODULES // var bench = require( '@stdlib/bench' ); -var uniform = require( '@stdlib/random/base/uniform' ).factory; -var filledarrayBy = require( '@stdlib/array/filled-by' ); +var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var pkg = require( './../package.json' ).name; @@ -31,7 +30,9 @@ var dsdot = require( './../lib/ndarray.js' ); // VARIABLES // -var rand = uniform( -100.0, 100.0 ); +var options = { + 'dtype': 'float32' +}; // FUNCTIONS // @@ -44,8 +45,8 @@ var rand = uniform( -100.0, 100.0 ); * @returns {Function} benchmark function */ function createBenchmark( len ) { - var x = filledarrayBy( len, 'float32', rand ); - var y = filledarrayBy( len, 'float32', rand ); + var x = uniform( len, -100.0, 100.0, options ); + var y = uniform( len, -100.0, 100.0, options ); return benchmark; function benchmark( b ) { diff --git a/lib/node_modules/@stdlib/blas/base/dsdot/benchmark/benchmark.ndarray.native.js b/lib/node_modules/@stdlib/blas/base/dsdot/benchmark/benchmark.ndarray.native.js index 43b4665fa8c..741015ae6e4 100644 --- a/lib/node_modules/@stdlib/blas/base/dsdot/benchmark/benchmark.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/base/dsdot/benchmark/benchmark.ndarray.native.js @@ -22,8 +22,7 @@ var resolve = require( 'path' ).resolve; var bench = require( '@stdlib/bench' ); -var uniform = require( '@stdlib/random/base/uniform' ).factory; -var filledarrayBy = require( '@stdlib/array/filled-by' ); +var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var tryRequire = require( '@stdlib/utils/try-require' ); @@ -36,7 +35,9 @@ var dsdot = tryRequire( resolve( __dirname, './../lib/ndarray.native.js' ) ); var opts = { 'skip': ( dsdot instanceof Error ) }; -var rand = uniform( -100.0, 100.0 ); +var options = { + 'dtype': 'float32' +}; // FUNCTIONS // @@ -49,8 +50,8 @@ var rand = uniform( -100.0, 100.0 ); * @returns {Function} benchmark function */ function createBenchmark( len ) { - var x = filledarrayBy( len, 'float32', rand ); - var y = filledarrayBy( len, 'float32', rand ); + var x = uniform( len, -100.0, 100.0, options ); + var y = uniform( len, -100.0, 100.0, options ); return benchmark; function benchmark( b ) { diff --git a/lib/node_modules/@stdlib/blas/base/dswap/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/base/dswap/benchmark/benchmark.js index cedb75b7f84..8fdf905f6ff 100644 --- a/lib/node_modules/@stdlib/blas/base/dswap/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/base/dswap/benchmark/benchmark.js @@ -21,8 +21,7 @@ // MODULES // var bench = require( '@stdlib/bench' ); -var uniform = require( '@stdlib/random/base/uniform' ).factory; -var filledarrayBy = require( '@stdlib/array/filled-by' ); +var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var pkg = require( './../package.json' ).name; @@ -31,7 +30,9 @@ var dswap = require( './../lib/dswap.js' ); // VARIABLES // -var rand = uniform( -10000.0, 10000.0 ); +var options = { + 'dtype': 'float64' +}; // FUNCTIONS // @@ -44,8 +45,8 @@ var rand = uniform( -10000.0, 10000.0 ); * @returns {Function} benchmark function */ function createBenchmark( len ) { - var x = filledarrayBy( len, 'float64', rand ); - var y = filledarrayBy( len, 'float64', rand ); + var x = uniform( len, -100.0, 100.0, options ); + var y = uniform( len, -100.0, 100.0, options ); return benchmark; /** diff --git a/lib/node_modules/@stdlib/blas/base/dswap/benchmark/benchmark.native.js b/lib/node_modules/@stdlib/blas/base/dswap/benchmark/benchmark.native.js index 464aeacdf50..8f036687ab0 100644 --- a/lib/node_modules/@stdlib/blas/base/dswap/benchmark/benchmark.native.js +++ b/lib/node_modules/@stdlib/blas/base/dswap/benchmark/benchmark.native.js @@ -22,8 +22,7 @@ var resolve = require( 'path' ).resolve; var bench = require( '@stdlib/bench' ); -var uniform = require( '@stdlib/random/base/uniform' ).factory; -var filledarrayBy = require( '@stdlib/array/filled-by' ); +var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var tryRequire = require( '@stdlib/utils/try-require' ); @@ -36,7 +35,9 @@ var dswap = tryRequire( resolve( __dirname, './../lib/dswap.native.js' ) ); var opts = { 'skip': ( dswap instanceof Error ) }; -var rand = uniform( -10000.0, 10000.0 ); +var options = { + 'dtype': 'float64' +}; // FUNCTIONS // @@ -49,8 +50,8 @@ var rand = uniform( -10000.0, 10000.0 ); * @returns {Function} benchmark function */ function createBenchmark( len ) { - var x = filledarrayBy( len, 'float64', rand ); - var y = filledarrayBy( len, 'float64', rand ); + var x = uniform( len, -100.0, 100.0, options ); + var y = uniform( len, -100.0, 100.0, options ); return benchmark; /** diff --git a/lib/node_modules/@stdlib/blas/base/dswap/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/base/dswap/benchmark/benchmark.ndarray.js index 199659eb67b..2d0130ae23c 100644 --- a/lib/node_modules/@stdlib/blas/base/dswap/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/base/dswap/benchmark/benchmark.ndarray.js @@ -21,8 +21,7 @@ // MODULES // var bench = require( '@stdlib/bench' ); -var uniform = require( '@stdlib/random/base/uniform' ).factory; -var filledarrayBy = require( '@stdlib/array/filled-by' ); +var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var pkg = require( './../package.json' ).name; @@ -31,7 +30,9 @@ var dswap = require( './../lib/ndarray.js' ); // VARIABLES // -var rand = uniform( -10000.0, 10000.0 ); +var options = { + 'dtype': 'float64' +}; // FUNCTIONS // @@ -44,8 +45,8 @@ var rand = uniform( -10000.0, 10000.0 ); * @returns {Function} benchmark function */ function createBenchmark( len ) { - var x = filledarrayBy( len, 'float64', rand ); - var y = filledarrayBy( len, 'float64', rand ); + var x = uniform( len, -100.0, 100.0, options ); + var y = uniform( len, -100.0, 100.0, options ); return benchmark; /** diff --git a/lib/node_modules/@stdlib/blas/base/dswap/benchmark/benchmark.ndarray.native.js b/lib/node_modules/@stdlib/blas/base/dswap/benchmark/benchmark.ndarray.native.js index 78bc9861acf..86f7db80f5f 100644 --- a/lib/node_modules/@stdlib/blas/base/dswap/benchmark/benchmark.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/base/dswap/benchmark/benchmark.ndarray.native.js @@ -22,8 +22,7 @@ var resolve = require( 'path' ).resolve; var bench = require( '@stdlib/bench' ); -var uniform = require( '@stdlib/random/base/uniform' ).factory; -var filledarrayBy = require( '@stdlib/array/filled-by' ); +var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var tryRequire = require( '@stdlib/utils/try-require' ); @@ -36,7 +35,9 @@ var dswap = tryRequire( resolve( __dirname, './../lib/ndarray.native.js' ) ); var opts = { 'skip': ( dswap instanceof Error ) }; -var rand = uniform( -10000.0, 10000.0 ); +var options = { + 'dtype': 'float64' +}; // FUNCTIONS // @@ -49,8 +50,8 @@ var rand = uniform( -10000.0, 10000.0 ); * @returns {Function} benchmark function */ function createBenchmark( len ) { - var x = filledarrayBy( len, 'float64', rand ); - var y = filledarrayBy( len, 'float64', rand ); + var x = uniform( len, -100.0, 100.0, options ); + var y = uniform( len, -100.0, 100.0, options ); return benchmark; /** diff --git a/lib/node_modules/@stdlib/blas/base/gasum/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/base/gasum/benchmark/benchmark.js index 03c6a6d2fac..a9a1619decd 100644 --- a/lib/node_modules/@stdlib/blas/base/gasum/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/base/gasum/benchmark/benchmark.js @@ -21,8 +21,7 @@ // MODULES // var bench = require( '@stdlib/bench' ); -var uniform = require( '@stdlib/random/base/uniform' ).factory; -var filledarrayBy = require( '@stdlib/array/filled-by' ); +var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var pkg = require( './../package.json' ).name; @@ -31,7 +30,9 @@ var gasum = require( './../lib' ); // VARIABLES // -var rand = uniform( -100.0, 100.0 ); +var options = { + 'dtype': 'float64' +}; // FUNCTIONS // @@ -44,7 +45,7 @@ var rand = uniform( -100.0, 100.0 ); * @returns {Function} benchmark function */ function createBenchmark( len ) { - var x = filledarrayBy( len, 'float64', rand ); + var x = uniform( len, -100.0, 100.0, options ); return benchmark; /** diff --git a/lib/node_modules/@stdlib/blas/base/gasum/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/base/gasum/benchmark/benchmark.ndarray.js index 6b1e850c5de..5afbfaa90a7 100644 --- a/lib/node_modules/@stdlib/blas/base/gasum/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/base/gasum/benchmark/benchmark.ndarray.js @@ -21,8 +21,7 @@ // MODULES // var bench = require( '@stdlib/bench' ); -var uniform = require( '@stdlib/random/base/uniform' ).factory; -var filledarrayBy = require( '@stdlib/array/filled-by' ); +var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var pkg = require( './../package.json' ).name; @@ -31,7 +30,9 @@ var gasum = require( './../lib' ).ndarray; // VARIABLES // -var rand = uniform( -100.0, 100.0 ); +var options = { + 'dtype': 'float64' +}; // FUNCTIONS // @@ -44,7 +45,7 @@ var rand = uniform( -100.0, 100.0 ); * @returns {Function} benchmark function */ function createBenchmark( len ) { - var x = filledarrayBy( len, 'float64', rand ); + var x = uniform( len, -100.0, 100.0, options ); return benchmark; /** diff --git a/lib/node_modules/@stdlib/blas/base/gaxpy/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/base/gaxpy/benchmark/benchmark.js index 6c86ae8adb6..8abc989b896 100644 --- a/lib/node_modules/@stdlib/blas/base/gaxpy/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/base/gaxpy/benchmark/benchmark.js @@ -21,8 +21,7 @@ // MODULES // var bench = require( '@stdlib/bench' ); -var uniform = require( '@stdlib/random/base/uniform' ).factory; -var filledarrayBy = require( '@stdlib/array/filled-by' ); +var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var pkg = require( './../package.json' ).name; @@ -31,7 +30,9 @@ var gaxpy = require( './../lib' ); // VARIABLES // -var rand = uniform( -100.0, 100.0 ); +var options = { + 'dtype': 'float64' +}; // FUNCTIONS // @@ -44,8 +45,8 @@ var rand = uniform( -100.0, 100.0 ); * @returns {Function} benchmark function */ function createBenchmark( len ) { - var x = filledarrayBy( len, 'float64', rand ); - var y = filledarrayBy( len, 'float64', rand ); + var x = uniform( len, -100.0, 100.0, options ); + var y = uniform( len, -100.0, 100.0, options ); return benchmark; /** diff --git a/lib/node_modules/@stdlib/blas/base/gaxpy/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/base/gaxpy/benchmark/benchmark.ndarray.js index 010028e6cb9..2eaab7a2e02 100644 --- a/lib/node_modules/@stdlib/blas/base/gaxpy/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/base/gaxpy/benchmark/benchmark.ndarray.js @@ -21,8 +21,7 @@ // MODULES // var bench = require( '@stdlib/bench' ); -var uniform = require( '@stdlib/random/base/uniform' ).factory; -var filledarrayBy = require( '@stdlib/array/filled-by' ); +var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var pkg = require( './../package.json' ).name; @@ -31,7 +30,9 @@ var gaxpy = require( './../lib' ).ndarray; // VARIABLES // -var rand = uniform( -100.0, 100.0 ); +var options = { + 'dtype': 'float64' +}; // FUNCTIONS // @@ -44,8 +45,8 @@ var rand = uniform( -100.0, 100.0 ); * @returns {Function} benchmark function */ function createBenchmark( len ) { - var x = filledarrayBy( len, 'float64', rand ); - var y = filledarrayBy( len, 'float64', rand ); + var x = uniform( len, -100.0, 100.0, options ); + var y = uniform( len, -100.0, 100.0, options ); return benchmark; /** diff --git a/lib/node_modules/@stdlib/blas/base/gcopy/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/base/gcopy/benchmark/benchmark.js index 2126d3e39d3..c5ccae93c66 100644 --- a/lib/node_modules/@stdlib/blas/base/gcopy/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/base/gcopy/benchmark/benchmark.js @@ -21,8 +21,7 @@ // MODULES // var bench = require( '@stdlib/bench' ); -var uniform = require( '@stdlib/random/base/uniform' ).factory; -var filledarrayBy = require( '@stdlib/array/filled-by' ); +var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var pkg = require( './../package.json' ).name; @@ -31,7 +30,9 @@ var gcopy = require( './../lib' ); // VARIABLES // -var rand = uniform( -10000.0, 10000.0 ); +var options = { + 'dtype': 'float64' +}; // FUNCTIONS // @@ -44,8 +45,8 @@ var rand = uniform( -10000.0, 10000.0 ); * @returns {Function} benchmark function */ function createBenchmark( len ) { - var x = filledarrayBy( len, 'float64', rand ); - var y = filledarrayBy( len, 'float64', rand ); + var x = uniform( len, -100.0, 100.0, options ); + var y = uniform( len, -100.0, 100.0, options ); return benchmark; /** diff --git a/lib/node_modules/@stdlib/blas/base/gcopy/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/base/gcopy/benchmark/benchmark.ndarray.js index 97717c167bc..913c2d5cb44 100644 --- a/lib/node_modules/@stdlib/blas/base/gcopy/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/base/gcopy/benchmark/benchmark.ndarray.js @@ -21,8 +21,7 @@ // MODULES // var bench = require( '@stdlib/bench' ); -var uniform = require( '@stdlib/random/base/uniform' ).factory; -var filledarrayBy = require( '@stdlib/array/filled-by' ); +var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var pkg = require( './../package.json' ).name; @@ -31,7 +30,9 @@ var gcopy = require( './../lib' ).ndarray; // VARIABLES // -var rand = uniform( -10000.0, 10000.0 ); +var options = { + 'dtype': 'float64' +}; // FUNCTIONS // @@ -44,8 +45,8 @@ var rand = uniform( -10000.0, 10000.0 ); * @returns {Function} benchmark function */ function createBenchmark( len ) { - var x = filledarrayBy( len, 'float64', rand ); - var y = filledarrayBy( len, 'float64', rand ); + var x = uniform( len, -100.0, 100.0, options ); + var y = uniform( len, -100.0, 100.0, options ); return benchmark; /** diff --git a/lib/node_modules/@stdlib/blas/base/gdot/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/base/gdot/benchmark/benchmark.js index 104127a6c86..f6906e789f2 100644 --- a/lib/node_modules/@stdlib/blas/base/gdot/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/base/gdot/benchmark/benchmark.js @@ -21,8 +21,7 @@ // MODULES // var bench = require( '@stdlib/bench' ); -var uniform = require( '@stdlib/random/base/uniform' ).factory; -var filledarrayBy = require( '@stdlib/array/filled-by' ); +var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var pkg = require( './../package.json' ).name; @@ -31,7 +30,9 @@ var gdot = require( './../lib' ); // VARIABLES // -var rand = uniform( -100.0, 100.0 ); +var options = { + 'dtype': 'generic' +}; // FUNCTIONS // @@ -44,8 +45,8 @@ var rand = uniform( -100.0, 100.0 ); * @returns {Function} benchmark function */ function createBenchmark( len ) { - var x = filledarrayBy( len, 'generic', rand ); - var y = filledarrayBy( len, 'generic', rand ); + var x = uniform( len, -100.0, 100.0, options ); + var y = uniform( len, -100.0, 100.0, options ); return benchmark; /** diff --git a/lib/node_modules/@stdlib/blas/base/gdot/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/base/gdot/benchmark/benchmark.ndarray.js index b8a30e308f5..778f6c0de3c 100644 --- a/lib/node_modules/@stdlib/blas/base/gdot/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/base/gdot/benchmark/benchmark.ndarray.js @@ -21,8 +21,7 @@ // MODULES // var bench = require( '@stdlib/bench' ); -var uniform = require( '@stdlib/random/base/uniform' ).factory; -var filledarrayBy = require( '@stdlib/array/filled-by' ); +var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var pkg = require( './../package.json' ).name; @@ -31,7 +30,9 @@ var gdot = require( './../lib' ).ndarray; // VARIABLES // -var rand = uniform( -100.0, 100.0 ); +var options = { + 'dtype': 'generic' +}; // FUNCTIONS // @@ -44,8 +45,8 @@ var rand = uniform( -100.0, 100.0 ); * @returns {Function} benchmark function */ function createBenchmark( len ) { - var x = filledarrayBy( len, 'generic', rand ); - var y = filledarrayBy( len, 'generic', rand ); + var x = uniform( len, -100.0, 100.0, options ); + var y = uniform( len, -100.0, 100.0, options ); return benchmark; /** diff --git a/lib/node_modules/@stdlib/blas/base/gnrm2/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/base/gnrm2/benchmark/benchmark.js index 8baafd3affc..fb37612a992 100644 --- a/lib/node_modules/@stdlib/blas/base/gnrm2/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/base/gnrm2/benchmark/benchmark.js @@ -21,8 +21,7 @@ // MODULES // var bench = require( '@stdlib/bench' ); -var uniform = require( '@stdlib/random/base/uniform' ).factory; -var filledarrayBy = require( '@stdlib/array/filled-by' ); +var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var pkg = require( './../package.json' ).name; @@ -31,7 +30,9 @@ var gnrm2 = require( './../lib' ); // VARIABLES // -var rand = uniform( -100.0, 100.0 ); +var options = { + 'dtype': 'generic' +}; // FUNCTIONS // @@ -44,7 +45,7 @@ var rand = uniform( -100.0, 100.0 ); * @returns {Function} benchmark function */ function createBenchmark( len ) { - var x = filledarrayBy( len, 'generic', rand ); + var x = uniform( len, -100.0, 100.0, options ); return benchmark; function benchmark( b ) { diff --git a/lib/node_modules/@stdlib/blas/base/gnrm2/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/base/gnrm2/benchmark/benchmark.ndarray.js index e33c4f8d3b6..387b3b1e8e8 100644 --- a/lib/node_modules/@stdlib/blas/base/gnrm2/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/base/gnrm2/benchmark/benchmark.ndarray.js @@ -21,8 +21,7 @@ // MODULES // var bench = require( '@stdlib/bench' ); -var uniform = require( '@stdlib/random/base/uniform' ).factory; -var filledarrayBy = require( '@stdlib/array/filled-by' ); +var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var pkg = require( './../package.json' ).name; @@ -31,7 +30,9 @@ var gnrm2 = require( './../lib' ).ndarray; // VARIABLES // -var rand = uniform( -100.0, 100.0 ); +var options = { + 'dtype': 'generic' +}; // FUNCTIONS // @@ -44,7 +45,7 @@ var rand = uniform( -100.0, 100.0 ); * @returns {Function} benchmark function */ function createBenchmark( len ) { - var x = filledarrayBy( len, 'generic', rand ); + var x = uniform( len, -100.0, 100.0, options ); return benchmark; function benchmark( b ) { diff --git a/lib/node_modules/@stdlib/blas/base/gscal/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/base/gscal/benchmark/benchmark.js index 65a4787aa5c..55ae9570f04 100644 --- a/lib/node_modules/@stdlib/blas/base/gscal/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/base/gscal/benchmark/benchmark.js @@ -21,8 +21,7 @@ // MODULES // var bench = require( '@stdlib/bench' ); -var uniform = require( '@stdlib/random/base/uniform' ).factory; -var filledarrayBy = require( '@stdlib/array/filled-by' ); +var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var pkg = require( './../package.json' ).name; @@ -31,7 +30,9 @@ var gscal = require( './../lib' ); // VARIABLES // -var rand = uniform( -100.0, 100.0 ); +var options = { + 'dtype': 'generic' +}; // FUNCTIONS // @@ -44,7 +45,7 @@ var rand = uniform( -100.0, 100.0 ); * @returns {Function} benchmark function */ function createBenchmark( len ) { - var x = filledarrayBy( len, 'generic', rand ); + var x = uniform( len, -100.0, 100.0, options ); return benchmark; function benchmark( b ) { diff --git a/lib/node_modules/@stdlib/blas/base/gscal/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/base/gscal/benchmark/benchmark.ndarray.js index ea08fea40c2..ee9129658b0 100644 --- a/lib/node_modules/@stdlib/blas/base/gscal/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/base/gscal/benchmark/benchmark.ndarray.js @@ -21,8 +21,7 @@ // MODULES // var bench = require( '@stdlib/bench' ); -var uniform = require( '@stdlib/random/base/uniform' ).factory; -var filledarrayBy = require( '@stdlib/array/filled-by' ); +var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var pkg = require( './../package.json' ).name; @@ -31,7 +30,9 @@ var gscal = require( './../lib' ).ndarray; // VARIABLES // -var rand = uniform( -100.0, 100.0 ); +var options = { + 'dtype': 'generic' +}; // FUNCTIONS // @@ -44,7 +45,7 @@ var rand = uniform( -100.0, 100.0 ); * @returns {Function} benchmark function */ function createBenchmark( len ) { - var x = filledarrayBy( len, 'generic', rand ); + var x = uniform( len, -100.0, 100.0, options ); return benchmark; function benchmark( b ) { diff --git a/lib/node_modules/@stdlib/blas/base/gswap/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/base/gswap/benchmark/benchmark.js index 169d6b3e6f8..f752a32fd9d 100644 --- a/lib/node_modules/@stdlib/blas/base/gswap/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/base/gswap/benchmark/benchmark.js @@ -21,8 +21,7 @@ // MODULES // var bench = require( '@stdlib/bench' ); -var uniform = require( '@stdlib/random/base/uniform' ).factory; -var filledarrayBy = require( '@stdlib/array/filled-by' ); +var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var pkg = require( './../package.json' ).name; @@ -31,7 +30,9 @@ var gswap = require( './../lib' ); // VARIABLES // -var rand = uniform( -10000.0, 10000.0 ); +var options = { + 'dtype': 'generic' +}; // FUNCTIONS // @@ -44,8 +45,8 @@ var rand = uniform( -10000.0, 10000.0 ); * @returns {Function} benchmark function */ function createBenchmark( len ) { - var x = filledarrayBy( len, 'generic', rand ); - var y = filledarrayBy( len, 'generic', rand ); + var x = uniform( len, -100.0, 100.0, options ); + var y = uniform( len, -100.0, 100.0, options ); return benchmark; /** diff --git a/lib/node_modules/@stdlib/blas/base/gswap/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/base/gswap/benchmark/benchmark.ndarray.js index f279caf3915..6bc064d5f7a 100644 --- a/lib/node_modules/@stdlib/blas/base/gswap/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/base/gswap/benchmark/benchmark.ndarray.js @@ -21,8 +21,7 @@ // MODULES // var bench = require( '@stdlib/bench' ); -var uniform = require( '@stdlib/random/base/uniform' ).factory; -var filledarrayBy = require( '@stdlib/array/filled-by' ); +var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var pkg = require( './../package.json' ).name; @@ -31,7 +30,9 @@ var gswap = require( './../lib' ).ndarray; // VARIABLES // -var rand = uniform( -10000.0, 10000.0 ); +var options = { + 'dtype': 'generic' +}; // FUNCTIONS // @@ -44,8 +45,8 @@ var rand = uniform( -10000.0, 10000.0 ); * @returns {Function} benchmark function */ function createBenchmark( len ) { - var x = filledarrayBy( len, 'generic', rand ); - var y = filledarrayBy( len, 'generic', rand ); + var x = uniform( len, -100.0, 100.0, options ); + var y = uniform( len, -100.0, 100.0, options ); return benchmark; /** diff --git a/lib/node_modules/@stdlib/blas/base/saxpy/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/base/saxpy/benchmark/benchmark.js index a900013d104..60d556e1e80 100644 --- a/lib/node_modules/@stdlib/blas/base/saxpy/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/base/saxpy/benchmark/benchmark.js @@ -21,8 +21,7 @@ // MODULES // var bench = require( '@stdlib/bench' ); -var uniform = require( '@stdlib/random/base/uniform' ).factory; -var filledarrayBy = require( '@stdlib/array/filled-by' ); +var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var pkg = require( './../package.json' ).name; @@ -31,7 +30,9 @@ var saxpy = require( './../lib/saxpy.js' ); // VARIABLES // -var rand = uniform( -100.0, 100.0 ); +var options = { + 'dtype': 'float32' +}; // FUNCTIONS // @@ -44,8 +45,8 @@ var rand = uniform( -100.0, 100.0 ); * @returns {Function} benchmark function */ function createBenchmark( len ) { - var x = filledarrayBy( len, 'float32', rand ); - var y = filledarrayBy( len, 'float32', rand ); + var x = uniform( len, -100.0, 100.0, options ); + var y = uniform( len, -100.0, 100.0, options ); return benchmark; /** diff --git a/lib/node_modules/@stdlib/blas/base/saxpy/benchmark/benchmark.native.js b/lib/node_modules/@stdlib/blas/base/saxpy/benchmark/benchmark.native.js index 9c38ce37e9f..e9080c91924 100644 --- a/lib/node_modules/@stdlib/blas/base/saxpy/benchmark/benchmark.native.js +++ b/lib/node_modules/@stdlib/blas/base/saxpy/benchmark/benchmark.native.js @@ -22,8 +22,7 @@ var resolve = require( 'path' ).resolve; var bench = require( '@stdlib/bench' ); -var uniform = require( '@stdlib/random/base/uniform' ).factory; -var filledarrayBy = require( '@stdlib/array/filled-by' ); +var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var tryRequire = require( '@stdlib/utils/try-require' ); @@ -36,7 +35,9 @@ var saxpy = tryRequire( resolve( __dirname, './../lib/saxpy.native.js' ) ); var opts = { 'skip': ( saxpy instanceof Error ) }; -var rand = uniform( -100.0, 100.0 ); +var options = { + 'dtype': 'float32' +}; // FUNCTIONS // @@ -49,8 +50,8 @@ var rand = uniform( -100.0, 100.0 ); * @returns {Function} benchmark function */ function createBenchmark( len ) { - var x = filledarrayBy( len, 'float32', rand ); - var y = filledarrayBy( len, 'float32', rand ); + var x = uniform( len, -100.0, 100.0, options ); + var y = uniform( len, -100.0, 100.0, options ); return benchmark; /** diff --git a/lib/node_modules/@stdlib/blas/base/saxpy/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/base/saxpy/benchmark/benchmark.ndarray.js index 6be145a547d..0d593335f2e 100644 --- a/lib/node_modules/@stdlib/blas/base/saxpy/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/base/saxpy/benchmark/benchmark.ndarray.js @@ -21,8 +21,7 @@ // MODULES // var bench = require( '@stdlib/bench' ); -var uniform = require( '@stdlib/random/base/uniform' ).factory; -var filledarrayBy = require( '@stdlib/array/filled-by' ); +var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var pkg = require( './../package.json' ).name; @@ -31,7 +30,9 @@ var saxpy = require( './../lib/ndarray.js' ); // VARIABLES // -var rand = uniform( -100.0, 100.0 ); +var options = { + 'dtype': 'float32' +}; // FUNCTIONS // @@ -44,8 +45,8 @@ var rand = uniform( -100.0, 100.0 ); * @returns {Function} benchmark function */ function createBenchmark( len ) { - var x = filledarrayBy( len, 'float32', rand ); - var y = filledarrayBy( len, 'float32', rand ); + var x = uniform( len, -100.0, 100.0, options ); + var y = uniform( len, -100.0, 100.0, options ); return benchmark; /** diff --git a/lib/node_modules/@stdlib/blas/base/saxpy/benchmark/benchmark.ndarray.native.js b/lib/node_modules/@stdlib/blas/base/saxpy/benchmark/benchmark.ndarray.native.js index f264397fea0..01348264576 100644 --- a/lib/node_modules/@stdlib/blas/base/saxpy/benchmark/benchmark.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/base/saxpy/benchmark/benchmark.ndarray.native.js @@ -22,8 +22,7 @@ var resolve = require( 'path' ).resolve; var bench = require( '@stdlib/bench' ); -var uniform = require( '@stdlib/random/base/uniform' ).factory; -var filledarrayBy = require( '@stdlib/array/filled-by' ); +var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var tryRequire = require( '@stdlib/utils/try-require' ); @@ -36,7 +35,9 @@ var saxpy = tryRequire( resolve( __dirname, './../lib/ndarray.native.js' ) ); var opts = { 'skip': ( saxpy instanceof Error ) }; -var rand = uniform( -100.0, 100.0 ); +var options = { + 'dtype': 'float32' +}; // FUNCTIONS // @@ -49,8 +50,8 @@ var rand = uniform( -100.0, 100.0 ); * @returns {Function} benchmark function */ function createBenchmark( len ) { - var x = filledarrayBy( len, 'float32', rand ); - var y = filledarrayBy( len, 'float32', rand ); + var x = uniform( len, -100.0, 100.0, options ); + var y = uniform( len, -100.0, 100.0, options ); return benchmark; /** diff --git a/lib/node_modules/@stdlib/blas/base/scopy/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/base/scopy/benchmark/benchmark.js index 3230fbfde93..f206bf54f6a 100644 --- a/lib/node_modules/@stdlib/blas/base/scopy/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/base/scopy/benchmark/benchmark.js @@ -21,8 +21,7 @@ // MODULES // var bench = require( '@stdlib/bench' ); -var uniform = require( '@stdlib/random/base/uniform' ).factory; -var filledarrayBy = require( '@stdlib/array/filled-by' ); +var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var pkg = require( './../package.json' ).name; @@ -31,7 +30,9 @@ var scopy = require( './../lib/scopy.js' ); // VARIABLES // -var rand = uniform( -10000.0, 10000.0 ); +var options = { + 'dtype': 'float32' +}; // FUNCTIONS // @@ -44,8 +45,8 @@ var rand = uniform( -10000.0, 10000.0 ); * @returns {Function} benchmark function */ function createBenchmark( len ) { - var x = filledarrayBy( len, 'float32', rand ); - var y = filledarrayBy( len, 'float32', rand ); + var x = uniform( len, -100.0, 100.0, options ); + var y = uniform( len, -100.0, 100.0, options ); return benchmark; /** diff --git a/lib/node_modules/@stdlib/blas/base/scopy/benchmark/benchmark.native.js b/lib/node_modules/@stdlib/blas/base/scopy/benchmark/benchmark.native.js index f43fa5ef161..2cdb4fd1b72 100644 --- a/lib/node_modules/@stdlib/blas/base/scopy/benchmark/benchmark.native.js +++ b/lib/node_modules/@stdlib/blas/base/scopy/benchmark/benchmark.native.js @@ -22,8 +22,7 @@ var resolve = require( 'path' ).resolve; var bench = require( '@stdlib/bench' ); -var uniform = require( '@stdlib/random/base/uniform' ).factory; -var filledarrayBy = require( '@stdlib/array/filled-by' ); +var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var tryRequire = require( '@stdlib/utils/try-require' ); @@ -36,7 +35,9 @@ var scopy = tryRequire( resolve( __dirname, './../lib/scopy.native.js' ) ); var opts = { 'skip': ( scopy instanceof Error ) }; -var rand = uniform( -10000.0, 10000.0 ); +var options = { + 'dtype': 'float32' +}; // FUNCTIONS // @@ -49,8 +50,8 @@ var rand = uniform( -10000.0, 10000.0 ); * @returns {Function} benchmark function */ function createBenchmark( len ) { - var x = filledarrayBy( len, 'float32', rand ); - var y = filledarrayBy( len, 'float32', rand ); + var x = uniform( len, -100.0, 100.0, options ); + var y = uniform( len, -100.0, 100.0, options ); return benchmark; /** diff --git a/lib/node_modules/@stdlib/blas/base/scopy/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/base/scopy/benchmark/benchmark.ndarray.js index aa041ae15c2..ba5ebe96edb 100644 --- a/lib/node_modules/@stdlib/blas/base/scopy/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/base/scopy/benchmark/benchmark.ndarray.js @@ -21,8 +21,7 @@ // MODULES // var bench = require( '@stdlib/bench' ); -var uniform = require( '@stdlib/random/base/uniform' ).factory; -var filledarrayBy = require( '@stdlib/array/filled-by' ); +var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var pkg = require( './../package.json' ).name; @@ -31,7 +30,9 @@ var scopy = require( './../lib/ndarray.js' ); // VARIABLES // -var rand = uniform( -10000.0, 10000.0 ); +var options = { + 'dtype': 'float32' +}; // FUNCTIONS // @@ -44,8 +45,8 @@ var rand = uniform( -10000.0, 10000.0 ); * @returns {Function} benchmark function */ function createBenchmark( len ) { - var x = filledarrayBy( len, 'float32', rand ); - var y = filledarrayBy( len, 'float32', rand ); + var x = uniform( len, -100.0, 100.0, options ); + var y = uniform( len, -100.0, 100.0, options ); return benchmark; /** diff --git a/lib/node_modules/@stdlib/blas/base/scopy/benchmark/benchmark.ndarray.native.js b/lib/node_modules/@stdlib/blas/base/scopy/benchmark/benchmark.ndarray.native.js index b7dbd092993..687362e82af 100644 --- a/lib/node_modules/@stdlib/blas/base/scopy/benchmark/benchmark.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/base/scopy/benchmark/benchmark.ndarray.native.js @@ -22,8 +22,7 @@ var resolve = require( 'path' ).resolve; var bench = require( '@stdlib/bench' ); -var uniform = require( '@stdlib/random/base/uniform' ).factory; -var filledarrayBy = require( '@stdlib/array/filled-by' ); +var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var tryRequire = require( '@stdlib/utils/try-require' ); @@ -36,7 +35,9 @@ var scopy = tryRequire( resolve( __dirname, './../lib/ndarray.native.js' ) ); var opts = { 'skip': ( scopy instanceof Error ) }; -var randu = uniform( -10000.0, 10000.0 ); +var options = { + 'dtype': 'float32' +}; // FUNCTIONS // @@ -49,8 +50,8 @@ var randu = uniform( -10000.0, 10000.0 ); * @returns {Function} benchmark function */ function createBenchmark( len ) { - var x = filledarrayBy( len, 'float32', randu ); - var y = filledarrayBy( len, 'float32', randu ); + var x = uniform( len, -100.0, 100.0, options ); + var y = uniform( len, -100.0, 100.0, options ); return benchmark; /** diff --git a/lib/node_modules/@stdlib/blas/base/sdot/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/base/sdot/benchmark/benchmark.js index 98019e86d76..74f323590ad 100644 --- a/lib/node_modules/@stdlib/blas/base/sdot/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/base/sdot/benchmark/benchmark.js @@ -21,8 +21,7 @@ // MODULES // var bench = require( '@stdlib/bench' ); -var uniform = require( '@stdlib/random/base/uniform' ).factory; -var filledarrayBy = require( '@stdlib/array/filled-by' ); +var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var pkg = require( './../package.json' ).name; @@ -31,7 +30,9 @@ var sdot = require( './../lib/sdot.js' ); // VARIABLES // -var rand = uniform( -100.0, 100.0 ); +var options = { + 'dtype': 'float32' +}; // FUNCTIONS // @@ -44,8 +45,8 @@ var rand = uniform( -100.0, 100.0 ); * @returns {Function} benchmark function */ function createBenchmark( len ) { - var x = filledarrayBy( len, 'float32', rand ); - var y = filledarrayBy( len, 'float32', rand ); + var x = uniform( len, -100.0, 100.0, options ); + var y = uniform( len, -100.0, 100.0, options ); return benchmark; function benchmark( b ) { diff --git a/lib/node_modules/@stdlib/blas/base/sdot/benchmark/benchmark.native.js b/lib/node_modules/@stdlib/blas/base/sdot/benchmark/benchmark.native.js index 846be9df270..c0e3c7c97ac 100644 --- a/lib/node_modules/@stdlib/blas/base/sdot/benchmark/benchmark.native.js +++ b/lib/node_modules/@stdlib/blas/base/sdot/benchmark/benchmark.native.js @@ -22,8 +22,7 @@ var resolve = require( 'path' ).resolve; var bench = require( '@stdlib/bench' ); -var uniform = require( '@stdlib/random/base/uniform' ).factory; -var filledarrayBy = require( '@stdlib/array/filled-by' ); +var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var tryRequire = require( '@stdlib/utils/try-require' ); @@ -36,7 +35,9 @@ var sdot = tryRequire( resolve( __dirname, './../lib/sdot.native.js' ) ); var opts = { 'skip': ( sdot instanceof Error ) }; -var rand = uniform( -100.0, 100.0 ); +var options = { + 'dtype': 'float32' +}; // FUNCTIONS // @@ -49,8 +50,8 @@ var rand = uniform( -100.0, 100.0 ); * @returns {Function} benchmark function */ function createBenchmark( len ) { - var x = filledarrayBy( len, 'float32', rand ); - var y = filledarrayBy( len, 'float32', rand ); + var x = uniform( len, -100.0, 100.0, options ); + var y = uniform( len, -100.0, 100.0, options ); return benchmark; function benchmark( b ) { diff --git a/lib/node_modules/@stdlib/blas/base/sdot/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/base/sdot/benchmark/benchmark.ndarray.js index 61203375e7c..37960355b2f 100644 --- a/lib/node_modules/@stdlib/blas/base/sdot/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/base/sdot/benchmark/benchmark.ndarray.js @@ -21,8 +21,7 @@ // MODULES // var bench = require( '@stdlib/bench' ); -var uniform = require( '@stdlib/random/base/uniform' ).factory; -var filledarrayBy = require( '@stdlib/array/filled-by' ); +var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var pkg = require( './../package.json' ).name; @@ -31,7 +30,9 @@ var sdot = require( './../lib/ndarray.js' ); // VARIABLES // -var rand = uniform( -100.0, 100.0 ); +var options = { + 'dtype': 'float32' +}; // FUNCTIONS // @@ -44,8 +45,8 @@ var rand = uniform( -100.0, 100.0 ); * @returns {Function} benchmark function */ function createBenchmark( len ) { - var x = filledarrayBy( len, 'float32', rand ); - var y = filledarrayBy( len, 'float32', rand ); + var x = uniform( len, -100.0, 100.0, options ); + var y = uniform( len, -100.0, 100.0, options ); return benchmark; function benchmark( b ) { diff --git a/lib/node_modules/@stdlib/blas/base/sdot/benchmark/benchmark.ndarray.native.js b/lib/node_modules/@stdlib/blas/base/sdot/benchmark/benchmark.ndarray.native.js index b1ea98d0a10..f2a63a588a4 100644 --- a/lib/node_modules/@stdlib/blas/base/sdot/benchmark/benchmark.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/base/sdot/benchmark/benchmark.ndarray.native.js @@ -22,8 +22,7 @@ var resolve = require( 'path' ).resolve; var bench = require( '@stdlib/bench' ); -var uniform = require( '@stdlib/random/base/uniform' ).factory; -var filledarrayBy = require( '@stdlib/array/filled-by' ); +var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var tryRequire = require( '@stdlib/utils/try-require' ); @@ -36,7 +35,9 @@ var sdot = tryRequire( resolve( __dirname, './../lib/ndarray.native.js' ) ); var opts = { 'skip': ( sdot instanceof Error ) }; -var rand = uniform( -100.0, 100.0 ); +var options = { + 'dtype': 'float32' +}; // FUNCTIONS // @@ -49,8 +50,8 @@ var rand = uniform( -100.0, 100.0 ); * @returns {Function} benchmark function */ function createBenchmark( len ) { - var x = filledarrayBy( len, 'float32', rand ); - var y = filledarrayBy( len, 'float32', rand ); + var x = uniform( len, -100.0, 100.0, options ); + var y = uniform( len, -100.0, 100.0, options ); return benchmark; function benchmark( b ) { diff --git a/lib/node_modules/@stdlib/blas/base/sdsdot/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/base/sdsdot/benchmark/benchmark.js index e9d17a11819..a494b99fd18 100644 --- a/lib/node_modules/@stdlib/blas/base/sdsdot/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/base/sdsdot/benchmark/benchmark.js @@ -21,8 +21,7 @@ // MODULES // var bench = require( '@stdlib/bench' ); -var uniform = require( '@stdlib/random/base/uniform' ).factory; -var filledarrayBy = require( '@stdlib/array/filled-by' ); +var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var pkg = require( './../package.json' ).name; @@ -31,7 +30,9 @@ var sdsdot = require( './../lib/sdsdot.js' ); // VARIABLES // -var rand = uniform( -100.0, 100.0 ); +var options = { + 'dtype': 'float32' +}; // FUNCTIONS // @@ -44,8 +45,8 @@ var rand = uniform( -100.0, 100.0 ); * @returns {Function} benchmark function */ function createBenchmark( len ) { - var x = filledarrayBy( len, 'float32', rand ); - var y = filledarrayBy( len, 'float32', rand ); + var x = uniform( len, -100.0, 100.0, options ); + var y = uniform( len, -100.0, 100.0, options ); return benchmark; function benchmark( b ) { diff --git a/lib/node_modules/@stdlib/blas/base/sdsdot/benchmark/benchmark.native.js b/lib/node_modules/@stdlib/blas/base/sdsdot/benchmark/benchmark.native.js index 0527a93d960..dea2f6ccea3 100644 --- a/lib/node_modules/@stdlib/blas/base/sdsdot/benchmark/benchmark.native.js +++ b/lib/node_modules/@stdlib/blas/base/sdsdot/benchmark/benchmark.native.js @@ -22,8 +22,7 @@ var resolve = require( 'path' ).resolve; var bench = require( '@stdlib/bench' ); -var uniform = require( '@stdlib/random/base/uniform' ).factory; -var filledarrayBy = require( '@stdlib/array/filled-by' ); +var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var tryRequire = require( '@stdlib/utils/try-require' ); @@ -36,7 +35,9 @@ var sdsdot = tryRequire( resolve( __dirname, './../lib/sdsdot.native.js' ) ); var opts = { 'skip': ( sdsdot instanceof Error ) }; -var rand = uniform( -100.0, 100.0 ); +var options = { + 'dtype': 'float32' +}; // FUNCTIONS // @@ -49,8 +50,8 @@ var rand = uniform( -100.0, 100.0 ); * @returns {Function} benchmark function */ function createBenchmark( len ) { - var x = filledarrayBy( len, 'float32', rand ); - var y = filledarrayBy( len, 'float32', rand ); + var x = uniform( len, -100.0, 100.0, options ); + var y = uniform( len, -100.0, 100.0, options ); return benchmark; function benchmark( b ) { diff --git a/lib/node_modules/@stdlib/blas/base/sdsdot/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/base/sdsdot/benchmark/benchmark.ndarray.js index a3015e89c4e..c09e4a2a067 100644 --- a/lib/node_modules/@stdlib/blas/base/sdsdot/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/base/sdsdot/benchmark/benchmark.ndarray.js @@ -21,8 +21,7 @@ // MODULES // var bench = require( '@stdlib/bench' ); -var uniform = require( '@stdlib/random/base/uniform' ).factory; -var filledarrayBy = require( '@stdlib/array/filled-by' ); +var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var pkg = require( './../package.json' ).name; @@ -31,7 +30,9 @@ var sdsdot = require( './../lib/ndarray.js' ); // VARIABLES // -var rand = uniform( -100.0, 100.0 ); +var options = { + 'dtype': 'float32' +}; // FUNCTIONS // @@ -44,8 +45,8 @@ var rand = uniform( -100.0, 100.0 ); * @returns {Function} benchmark function */ function createBenchmark( len ) { - var x = filledarrayBy( len, 'float32', rand ); - var y = filledarrayBy( len, 'float32', rand ); + var x = uniform( len, -100.0, 100.0, options ); + var y = uniform( len, -100.0, 100.0, options ); return benchmark; function benchmark( b ) { diff --git a/lib/node_modules/@stdlib/blas/base/sdsdot/benchmark/benchmark.ndarray.native.js b/lib/node_modules/@stdlib/blas/base/sdsdot/benchmark/benchmark.ndarray.native.js index 8d194eace8b..e3bb177fbca 100644 --- a/lib/node_modules/@stdlib/blas/base/sdsdot/benchmark/benchmark.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/base/sdsdot/benchmark/benchmark.ndarray.native.js @@ -22,8 +22,7 @@ var resolve = require( 'path' ).resolve; var bench = require( '@stdlib/bench' ); -var uniform = require( '@stdlib/random/base/uniform' ).factory; -var filledarrayBy = require( '@stdlib/array/filled-by' ); +var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var tryRequire = require( '@stdlib/utils/try-require' ); @@ -36,7 +35,9 @@ var sdsdot = tryRequire( resolve( __dirname, './../lib/ndarray.native.js' ) ); var opts = { 'skip': ( sdsdot instanceof Error ) }; -var rand = uniform( -100.0, 100.0 ); +var options = { + 'dtype': 'float32' +}; // FUNCTIONS // @@ -49,8 +50,8 @@ var rand = uniform( -100.0, 100.0 ); * @returns {Function} benchmark function */ function createBenchmark( len ) { - var x = filledarrayBy( len, 'float32', rand ); - var y = filledarrayBy( len, 'float32', rand ); + var x = uniform( len, -100.0, 100.0, options ); + var y = uniform( len, -100.0, 100.0, options ); return benchmark; function benchmark( b ) { diff --git a/lib/node_modules/@stdlib/blas/base/snrm2/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/base/snrm2/benchmark/benchmark.js index 96389a2aea5..9cb1b58bc83 100644 --- a/lib/node_modules/@stdlib/blas/base/snrm2/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/base/snrm2/benchmark/benchmark.js @@ -21,8 +21,7 @@ // MODULES // var bench = require( '@stdlib/bench' ); -var uniform = require( '@stdlib/random/base/uniform' ).factory; -var filledarrayBy = require( '@stdlib/array/filled-by' ); +var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var pkg = require( './../package.json' ).name; @@ -31,7 +30,9 @@ var snrm2 = require( './../lib/snrm2.js' ); // VARIABLES // -var rand = uniform( -10.0, 10.0 ); +var options = { + 'dtype': 'float32' +}; // FUNCTIONS // @@ -44,7 +45,7 @@ var rand = uniform( -10.0, 10.0 ); * @returns {Function} benchmark function */ function createBenchmark( len ) { - var x = filledarrayBy( len, 'float32', rand ); + var x = uniform( len, -100.0, 100.0, options ); return benchmark; function benchmark( b ) { diff --git a/lib/node_modules/@stdlib/blas/base/snrm2/benchmark/benchmark.native.js b/lib/node_modules/@stdlib/blas/base/snrm2/benchmark/benchmark.native.js index 9c274bb44dd..05c605404f4 100644 --- a/lib/node_modules/@stdlib/blas/base/snrm2/benchmark/benchmark.native.js +++ b/lib/node_modules/@stdlib/blas/base/snrm2/benchmark/benchmark.native.js @@ -22,8 +22,7 @@ var resolve = require( 'path' ).resolve; var bench = require( '@stdlib/bench' ); -var uniform = require( '@stdlib/random/base/uniform' ).factory; -var filledarrayBy = require( '@stdlib/array/filled-by' ); +var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var tryRequire = require( '@stdlib/utils/try-require' ); @@ -36,7 +35,9 @@ var snrm2 = tryRequire( resolve( __dirname, './../lib/snrm2.native.js' ) ); var opts = { 'skip': ( snrm2 instanceof Error ) }; -var rand = uniform( -10.0, 10.0 ); +var options = { + 'dtype': 'float32' +}; // FUNCTIONS // @@ -49,7 +50,7 @@ var rand = uniform( -10.0, 10.0 ); * @returns {Function} benchmark function */ function createBenchmark( len ) { - var x = filledarrayBy( len, 'float32', rand ); + var x = uniform( len, -100.0, 100.0, options ); return benchmark; function benchmark( b ) { diff --git a/lib/node_modules/@stdlib/blas/base/snrm2/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/base/snrm2/benchmark/benchmark.ndarray.js index cdc60816eb8..9567965aebe 100644 --- a/lib/node_modules/@stdlib/blas/base/snrm2/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/base/snrm2/benchmark/benchmark.ndarray.js @@ -21,8 +21,7 @@ // MODULES // var bench = require( '@stdlib/bench' ); -var uniform = require( '@stdlib/random/base/uniform' ).factory; -var filledarrayBy = require( '@stdlib/array/filled-by' ); +var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var pkg = require( './../package.json' ).name; @@ -31,7 +30,9 @@ var snrm2 = require( './../lib/ndarray.js' ); // VARIABLES // -var rand = uniform( -10.0, 10.0 ); +var options = { + 'dtype': 'float32' +}; // FUNCTIONS // @@ -44,7 +45,7 @@ var rand = uniform( -10.0, 10.0 ); * @returns {Function} benchmark function */ function createBenchmark( len ) { - var x = filledarrayBy( len, 'float32', rand ); + var x = uniform( len, -100.0, 100.0, options ); return benchmark; function benchmark( b ) { diff --git a/lib/node_modules/@stdlib/blas/base/snrm2/benchmark/benchmark.ndarray.native.js b/lib/node_modules/@stdlib/blas/base/snrm2/benchmark/benchmark.ndarray.native.js index 71909d17690..279b1cca0db 100644 --- a/lib/node_modules/@stdlib/blas/base/snrm2/benchmark/benchmark.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/base/snrm2/benchmark/benchmark.ndarray.native.js @@ -22,8 +22,7 @@ var resolve = require( 'path' ).resolve; var bench = require( '@stdlib/bench' ); -var uniform = require( '@stdlib/random/base/uniform' ).factory; -var filledarrayBy = require( '@stdlib/array/filled-by' ); +var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var tryRequire = require( '@stdlib/utils/try-require' ); @@ -36,7 +35,9 @@ var snrm2 = tryRequire( resolve( __dirname, './../lib/ndarray.native.js' ) ); var opts = { 'skip': ( snrm2 instanceof Error ) }; -var rand = uniform( -10.0, 10.0 ); +var options = { + 'dtype': 'float32' +}; // FUNCTIONS // @@ -49,7 +50,7 @@ var rand = uniform( -10.0, 10.0 ); * @returns {Function} benchmark function */ function createBenchmark( len ) { - var x = filledarrayBy( len, 'float32', rand ); + var x = uniform( len, -100.0, 100.0, options ); return benchmark; function benchmark( b ) { diff --git a/lib/node_modules/@stdlib/blas/base/sswap/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/base/sswap/benchmark/benchmark.js index 573593c1225..100641c1611 100644 --- a/lib/node_modules/@stdlib/blas/base/sswap/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/base/sswap/benchmark/benchmark.js @@ -21,8 +21,7 @@ // MODULES // var bench = require( '@stdlib/bench' ); -var uniform = require( '@stdlib/random/base/uniform' ).factory; -var filledarrayBy = require( '@stdlib/array/filled-by' ); +var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var pkg = require( './../package.json' ).name; @@ -31,7 +30,9 @@ var sswap = require( './../lib/sswap.js' ); // VARIABLES // -var rand = uniform( -10000.0, 10000.0 ); +var options = { + 'dtype': 'float32' +}; // FUNCTIONS // @@ -44,8 +45,8 @@ var rand = uniform( -10000.0, 10000.0 ); * @returns {Function} benchmark function */ function createBenchmark( len ) { - var x = filledarrayBy( len, 'float32', rand ); - var y = filledarrayBy( len, 'float32', rand ); + var x = uniform( len, -100.0, 100.0, options ); + var y = uniform( len, -100.0, 100.0, options ); return benchmark; /** diff --git a/lib/node_modules/@stdlib/blas/base/sswap/benchmark/benchmark.native.js b/lib/node_modules/@stdlib/blas/base/sswap/benchmark/benchmark.native.js index 10527c1cf25..e164ef15d73 100644 --- a/lib/node_modules/@stdlib/blas/base/sswap/benchmark/benchmark.native.js +++ b/lib/node_modules/@stdlib/blas/base/sswap/benchmark/benchmark.native.js @@ -22,8 +22,7 @@ var resolve = require( 'path' ).resolve; var bench = require( '@stdlib/bench' ); -var uniform = require( '@stdlib/random/base/uniform' ).factory; -var filledarrayBy = require( '@stdlib/array/filled-by' ); +var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var tryRequire = require( '@stdlib/utils/try-require' ); @@ -36,7 +35,9 @@ var sswap = tryRequire( resolve( __dirname, './../lib/sswap.native.js' ) ); var opts = { 'skip': ( sswap instanceof Error ) }; -var rand = uniform( -10000.0, 10000.0 ); +var options = { + 'dtype': 'float32' +}; // FUNCTIONS // @@ -49,8 +50,8 @@ var rand = uniform( -10000.0, 10000.0 ); * @returns {Function} benchmark function */ function createBenchmark( len ) { - var x = filledarrayBy( len, 'float32', rand ); - var y = filledarrayBy( len, 'float32', rand ); + var x = uniform( len, -100.0, 100.0, options ); + var y = uniform( len, -100.0, 100.0, options ); return benchmark; /** diff --git a/lib/node_modules/@stdlib/blas/base/sswap/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/base/sswap/benchmark/benchmark.ndarray.js index cdd3f68a568..4d57d7f1d97 100644 --- a/lib/node_modules/@stdlib/blas/base/sswap/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/base/sswap/benchmark/benchmark.ndarray.js @@ -21,8 +21,7 @@ // MODULES // var bench = require( '@stdlib/bench' ); -var uniform = require( '@stdlib/random/base/uniform' ).factory; -var filledarrayBy = require( '@stdlib/array/filled-by' ); +var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var pkg = require( './../package.json' ).name; @@ -31,7 +30,9 @@ var sswap = require( './../lib/ndarray.js' ); // VARIABLES // -var rand = uniform( -10000.0, 10000.0 ); +var options = { + 'dtype': 'float32' +}; // FUNCTIONS // @@ -44,8 +45,8 @@ var rand = uniform( -10000.0, 10000.0 ); * @returns {Function} benchmark function */ function createBenchmark( len ) { - var x = filledarrayBy( len, 'float32', rand ); - var y = filledarrayBy( len, 'float32', rand ); + var x = uniform( len, -100.0, 100.0, options ); + var y = uniform( len, -100.0, 100.0, options ); return benchmark; /** diff --git a/lib/node_modules/@stdlib/blas/base/sswap/benchmark/benchmark.ndarray.native.js b/lib/node_modules/@stdlib/blas/base/sswap/benchmark/benchmark.ndarray.native.js index 2a9c04d96ca..70e603cacd2 100644 --- a/lib/node_modules/@stdlib/blas/base/sswap/benchmark/benchmark.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/base/sswap/benchmark/benchmark.ndarray.native.js @@ -22,8 +22,7 @@ var resolve = require( 'path' ).resolve; var bench = require( '@stdlib/bench' ); -var uniform = require( '@stdlib/random/base/uniform' ).factory; -var filledarrayBy = require( '@stdlib/array/filled-by' ); +var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var tryRequire = require( '@stdlib/utils/try-require' ); @@ -36,7 +35,9 @@ var sswap = tryRequire( resolve( __dirname, './../lib/ndarray.native.js' ) ); var opts = { 'skip': ( sswap instanceof Error ) }; -var rand = uniform( -10000.0, 10000.0 ); +var options = { + 'dtype': 'float32' +}; // FUNCTIONS // @@ -49,8 +50,8 @@ var rand = uniform( -10000.0, 10000.0 ); * @returns {Function} benchmark function */ function createBenchmark( len ) { - var x = filledarrayBy( len, 'float32', rand ); - var y = filledarrayBy( len, 'float32', rand ); + var x = uniform( len, -100.0, 100.0, options ); + var y = uniform( len, -100.0, 100.0, options ); return benchmark; /**