Skip to content

Commit 75cbf48

Browse files
committed
fix: apply suggestions from code review
--- 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 8ee03c2 commit 75cbf48

4 files changed

Lines changed: 12 additions & 12 deletions

File tree

lib/node_modules/@stdlib/blas/ext/base/cindex-of-row/benchmark/benchmark.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
// MODULES //
2222

2323
var bench = require( '@stdlib/bench' );
24-
var isnan = require( '@stdlib/math/base/assert/is-nan' );
24+
var isnanf = require( '@stdlib/math/base/assert/is-nanf' );
2525
var uniform = require( '@stdlib/random/array/uniform' );
2626
var zeros = require( '@stdlib/array/zeros' );
2727
var pow = require( '@stdlib/math/base/special/pow' );
@@ -81,12 +81,12 @@ function createBenchmark( order, N ) {
8181
b.tic();
8282
for ( i = 0; i < b.iterations; i++ ) {
8383
z = cindexOfRow( order, N, N, A, N, x, 1, workspace, 1 );
84-
if ( isnan( z ) ) {
84+
if ( isnanf( z ) ) {
8585
b.fail( 'should not return NaN' );
8686
}
8787
}
8888
b.toc();
89-
if ( isnan( z ) ) {
89+
if ( isnanf( z ) ) {
9090
b.fail( 'should not return NaN' );
9191
}
9292
b.pass( 'benchmark finished' );

lib/node_modules/@stdlib/blas/ext/base/cindex-of-row/benchmark/benchmark.native.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
var resolve = require( 'path' ).resolve;
2424
var bench = require( '@stdlib/bench' );
25-
var isnan = require( '@stdlib/math/base/assert/is-nan' );
25+
var isnanf = require( '@stdlib/math/base/assert/is-nanf' );
2626
var uniform = require( '@stdlib/random/array/uniform' );
2727
var zeros = require( '@stdlib/array/zeros' );
2828
var pow = require( '@stdlib/math/base/special/pow' );
@@ -86,12 +86,12 @@ function createBenchmark( order, N ) {
8686
b.tic();
8787
for ( i = 0; i < b.iterations; i++ ) {
8888
z = cindexOfRow( order, N, N, A, N, x, 1, workspace, 1 );
89-
if ( isnan( z ) ) {
89+
if ( isnanf( z ) ) {
9090
b.fail( 'should not return NaN' );
9191
}
9292
}
9393
b.toc();
94-
if ( isnan( z ) ) {
94+
if ( isnanf( z ) ) {
9595
b.fail( 'should not return NaN' );
9696
}
9797
b.pass( 'benchmark finished' );

lib/node_modules/@stdlib/blas/ext/base/cindex-of-row/benchmark/benchmark.ndarray.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
// MODULES //
2222

2323
var bench = require( '@stdlib/bench' );
24-
var isnan = require( '@stdlib/math/base/assert/is-nan' );
24+
var isnanf = require( '@stdlib/math/base/assert/is-nanf' );
2525
var uniform = require( '@stdlib/random/array/uniform' );
2626
var pow = require( '@stdlib/math/base/special/pow' );
2727
var floor = require( '@stdlib/math/base/special/floor' );
@@ -92,12 +92,12 @@ function createBenchmark( order, N ) {
9292
b.tic();
9393
for ( i = 0; i < b.iterations; i++ ) {
9494
z = cindexOfRow( N, N, A, sa1, sa2, 0, x, 1, 0, workspace, 1, 0 );
95-
if ( isnan( z ) ) {
95+
if ( isnanf( z ) ) {
9696
b.fail( 'should not return NaN' );
9797
}
9898
}
9999
b.toc();
100-
if ( isnan( z ) ) {
100+
if ( isnanf( z ) ) {
101101
b.fail( 'should not return NaN' );
102102
}
103103
b.pass( 'benchmark finished' );

lib/node_modules/@stdlib/blas/ext/base/cindex-of-row/benchmark/benchmark.ndarray.native.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
var resolve = require( 'path' ).resolve;
2424
var bench = require( '@stdlib/bench' );
25-
var isnan = require( '@stdlib/math/base/assert/is-nan' );
25+
var isnanf = require( '@stdlib/math/base/assert/is-nanf' );
2626
var uniform = require( '@stdlib/random/array/uniform' );
2727
var pow = require( '@stdlib/math/base/special/pow' );
2828
var floor = require( '@stdlib/math/base/special/floor' );
@@ -97,12 +97,12 @@ function createBenchmark( order, N ) {
9797
b.tic();
9898
for ( i = 0; i < b.iterations; i++ ) {
9999
z = cindexOfRow( N, N, A, sa1, sa2, 0, x, 1, 0, workspace, 1, 0 );
100-
if ( isnan( z ) ) {
100+
if ( isnanf( z ) ) {
101101
b.fail( 'should not return NaN' );
102102
}
103103
}
104104
b.toc();
105-
if ( isnan( z ) ) {
105+
if ( isnanf( z ) ) {
106106
b.fail( 'should not return NaN' );
107107
}
108108
b.pass( 'benchmark finished' );

0 commit comments

Comments
 (0)