Skip to content

Commit ff81716

Browse files
fix: benchmark
--- 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: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed --- --- type: pre_push_report description: Results of running various checks prior to pushing changes. report: - task: run_javascript_examples status: na - task: run_c_examples status: na - task: run_cpp_examples status: na - task: run_javascript_readme_examples status: na - task: run_c_benchmarks status: na - task: run_cpp_benchmarks status: na - task: run_fortran_benchmarks status: na - task: run_javascript_benchmarks status: passed - task: run_julia_benchmarks status: na - task: run_python_benchmarks status: na - task: run_r_benchmarks status: na - task: run_javascript_tests status: na ---
1 parent 320a381 commit ff81716

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/node_modules/@stdlib/stats/base/dists/frechet/cdf/benchmark/benchmark.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ bench( pkg, function benchmark( b ) {
4646
s = new Float64Array( len );
4747
m = new Float64Array( len );
4848
for ( i = 0; i < len; i++ ) {
49-
x = ( randu()*100.0 ) - 50.0;
49+
x[ i ] = ( randu()*100.0 ) - 50.0;
5050
alpha[ i ] = ( randu()*20.0 ) + EPS;
5151
m[ i ] = ( randu()*60.0 ) - 20.0;
5252
s[ i ] = ( randu()*20.0 ) + EPS;

lib/node_modules/@stdlib/stats/base/dists/frechet/cdf/benchmark/benchmark.native.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ bench( pkg+'::native', opts, function benchmark( b ) {
5555
s = new Float64Array( len );
5656
m = new Float64Array( len );
5757
for ( i = 0; i < len; i++ ) {
58-
x = ( randu()*100.0 ) - 50.0;
58+
x[ i ] = ( randu()*100.0 ) - 50.0;
5959
alpha[ i ] = ( randu()*20.0 ) + EPS;
6060
m[ i ] = ( randu()*60.0 ) - 20.0;
6161
s[ i ] = ( randu()*20.0 ) + EPS;

0 commit comments

Comments
 (0)