Skip to content

Commit 7ca5f29

Browse files
committed
fix: properly wrap input in benchmark.js
--- 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 a75e344 commit 7ca5f29

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • lib/node_modules/@stdlib/stats/mskrange/benchmark

lib/node_modules/@stdlib/stats/mskrange/benchmark/benchmark.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ function createBenchmark( len ) {
5252
'dtype': 'uint8'
5353
});
5454
var x = uniform( len, -50.0, 50.0, options );
55+
56+
x = new ndarray( options.dtype, x, [ len ], [ 1 ], 0, 'row-major' );
5557
mask = new ndarray( 'uint8', mask, [ len ], [ 1 ], 0, 'row-major' );
5658

5759
return benchmark;

0 commit comments

Comments
 (0)