Skip to content

Commit 024e00e

Browse files
authored
bench: fix dtype
Signed-off-by: Athan <kgryte@gmail.com>
1 parent 3b7d90b commit 024e00e

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

  • lib/node_modules/@stdlib/stats/base/ndarray/dnanmskrange/benchmark

lib/node_modules/@stdlib/stats/base/ndarray/dnanmskrange/benchmark/benchmark.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ var dnanmskrange = require( './../lib' );
3535
var options = {
3636
'dtype': 'float64'
3737
};
38+
var moptions = {
39+
'dtype': 'uint8'
40+
};
3841

3942

4043
// FUNCTIONS //
@@ -55,8 +58,8 @@ function createBenchmark( len ) {
5558
xbuf = uniform( len, -100.0, 100.0, options );
5659
x = new ndarray( options.dtype, xbuf, [ len ], [ 1 ], 0, 'row-major' );
5760

58-
mbuf = bernoulli( len, 0.2, options );
59-
mask = new ndarray( options.dtype, mbuf, [ len ], [ 1 ], 0, 'row-major' );
61+
mbuf = bernoulli( len, 0.2, moptions );
62+
mask = new ndarray( moptions.dtype, mbuf, [ len ], [ 1 ], 0, 'row-major' );
6063

6164
return benchmark;
6265

0 commit comments

Comments
 (0)