Skip to content

Commit 227276a

Browse files
committed
bench: update isnan
--- 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 78d0a60 commit 227276a

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

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

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

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

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

0 commit comments

Comments
 (0)