Skip to content

Commit 4bb7daf

Browse files
committed
chore: clean up in benchmarks
--- 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 a393955 commit 4bb7daf

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

lib/node_modules/@stdlib/blas/base/cgemv/benchmark/benchmark.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,12 @@ function createBenchmark( N ) {
8383
b.tic();
8484
for ( i = 0; i < b.iterations; i++ ) {
8585
z = cgemv( 'row-major', 'no-transpose', N, N, alpha, A, N, x, 1, beta, y, 1 );
86-
if ( isnanf( z[ i% ( z.length ) ] ) ) {
86+
if ( isnanf( z[ i%z.length ] ) ) {
8787
b.fail( 'should not return NaN' );
8888
}
8989
}
9090
b.toc();
91-
if ( isnanf( z[ i % ( z.length ) ] ) ) {
91+
if ( isnanf( z[ i%z.length ] ) ) {
9292
b.fail( 'should not return NaN' );
9393
}
9494
b.pass( 'benchmark finished' );

lib/node_modules/@stdlib/blas/base/cgemv/benchmark/benchmark.ndarray.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,12 @@ function createBenchmark( N ) {
8383
b.tic();
8484
for ( i = 0; i < b.iterations; i++ ) {
8585
z = cgemv( 'no-transpose', N, N, alpha, A, 1, N, 0, x, 1, 0, beta, y, 1, 0 );
86-
if ( isnanf( z[ i % ( z.length ) ] ) ) {
86+
if ( isnanf( z[ i%z.length ] ) ) {
8787
b.fail( 'should not return NaN' );
8888
}
8989
}
9090
b.toc();
91-
if ( isnanf( z[ i % ( z.length ) ] ) ) {
91+
if ( isnanf( z[ i%z.length ] ) ) {
9292
b.fail( 'should not return NaN' );
9393
}
9494
b.pass( 'benchmark finished' );

0 commit comments

Comments
 (0)