Skip to content

Commit b0026d0

Browse files
committed
bench: fix dtype
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: passed - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 2eb8eb5 commit b0026d0

File tree

1 file changed

+5
-2
lines changed
  • lib/node_modules/@stdlib/stats/base/ndarray/snanmskrange/benchmark

1 file changed

+5
-2
lines changed

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ var snanmskrange = require( './../lib' );
3535
var options = {
3636
'dtype': 'float32'
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)