Skip to content

Commit 43755e0

Browse files
authored
Apply suggestions from code review
Co-authored-by: Athan <kgryte@gmail.com> Signed-off-by: Athan <kgryte@gmail.com>
1 parent 98cad5a commit 43755e0

4 files changed

Lines changed: 12 additions & 12 deletions

File tree

lib/node_modules/@stdlib/blas/ext/base/szero-to/benchmark/benchmark.js

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

2323
var bench = require( '@stdlib/bench' );
2424
var uniform = require( '@stdlib/random/array/uniform' );
25-
var isnan = require( '@stdlib/math/base/assert/is-nan' );
25+
var isnanf = require( '@stdlib/math/base/assert/is-nanf' );
2626
var pow = require( '@stdlib/math/base/special/pow' );
2727
var format = require( '@stdlib/string/format' );
2828
var pkg = require( './../package.json' ).name;
@@ -62,12 +62,12 @@ function createBenchmark( len ) {
6262
b.tic();
6363
for ( i = 0; i < b.iterations; i++ ) {
6464
y = szeroTo( x.length, x, 1 );
65-
if ( isnan( y[ i%x.length ] ) ) {
65+
if ( isnanf( y[ i%x.length ] ) ) {
6666
b.fail( 'should not return NaN' );
6767
}
6868
}
6969
b.toc();
70-
if ( isnan( y[ i%x.length ] ) ) {
70+
if ( isnanf( y[ i%x.length ] ) ) {
7171
b.fail( 'should not return NaN' );
7272
}
7373
b.pass( 'benchmark finished' );

lib/node_modules/@stdlib/blas/ext/base/szero-to/benchmark/benchmark.native.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
var resolve = require( 'path' ).resolve;
2424
var bench = require( '@stdlib/bench' );
2525
var uniform = require( '@stdlib/random/array/uniform' );
26-
var isnan = require( '@stdlib/math/base/assert/is-nan' );
26+
var isnanf = require( '@stdlib/math/base/assert/is-nanf' );
2727
var pow = require( '@stdlib/math/base/special/pow' );
2828
var tryRequire = require( '@stdlib/utils/try-require' );
2929
var format = require( '@stdlib/string/format' );
@@ -67,12 +67,12 @@ function createBenchmark( len ) {
6767
b.tic();
6868
for ( i = 0; i < b.iterations; i++ ) {
6969
y = szeroTo( x.length, x, 1 );
70-
if ( isnan( y[ i%x.length ] ) ) {
70+
if ( isnanf( y[ i%x.length ] ) ) {
7171
b.fail( 'should not return NaN' );
7272
}
7373
}
7474
b.toc();
75-
if ( isnan( y[ i%x.length ] ) ) {
75+
if ( isnanf( y[ i%x.length ] ) ) {
7676
b.fail( 'should not return NaN' );
7777
}
7878
b.pass( 'benchmark finished' );

lib/node_modules/@stdlib/blas/ext/base/szero-to/benchmark/benchmark.ndarray.js

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

2323
var bench = require( '@stdlib/bench' );
2424
var uniform = require( '@stdlib/random/array/uniform' );
25-
var isnan = require( '@stdlib/math/base/assert/is-nan' );
25+
var isnanf = require( '@stdlib/math/base/assert/is-nanf' );
2626
var pow = require( '@stdlib/math/base/special/pow' );
2727
var format = require( '@stdlib/string/format' );
2828
var pkg = require( './../package.json' ).name;
@@ -62,12 +62,12 @@ function createBenchmark( len ) {
6262
b.tic();
6363
for ( i = 0; i < b.iterations; i++ ) {
6464
y = szeroTo( x.length, x, 1, 0 );
65-
if ( isnan( y[ i%x.length ] ) ) {
65+
if ( isnanf( y[ i%x.length ] ) ) {
6666
b.fail( 'should not return NaN' );
6767
}
6868
}
6969
b.toc();
70-
if ( isnan( y[ i%x.length ] ) ) {
70+
if ( isnanf( y[ i%x.length ] ) ) {
7171
b.fail( 'should not return NaN' );
7272
}
7373
b.pass( 'benchmark finished' );

lib/node_modules/@stdlib/blas/ext/base/szero-to/benchmark/benchmark.ndarray.native.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
var resolve = require( 'path' ).resolve;
2424
var bench = require( '@stdlib/bench' );
2525
var uniform = require( '@stdlib/random/array/uniform' );
26-
var isnan = require( '@stdlib/math/base/assert/is-nan' );
26+
var isnanf = require( '@stdlib/math/base/assert/is-nanf' );
2727
var pow = require( '@stdlib/math/base/special/pow' );
2828
var tryRequire = require( '@stdlib/utils/try-require' );
2929
var format = require( '@stdlib/string/format' );
@@ -67,12 +67,12 @@ function createBenchmark( len ) {
6767
b.tic();
6868
for ( i = 0; i < b.iterations; i++ ) {
6969
y = szeroTo( x.length, x, 1, 0 );
70-
if ( isnan( y[ i%x.length ] ) ) {
70+
if ( isnanf( y[ i%x.length ] ) ) {
7171
b.fail( 'should not return NaN' );
7272
}
7373
}
7474
b.toc();
75-
if ( isnan( y[ i%x.length ] ) ) {
75+
if ( isnanf( y[ i%x.length ] ) ) {
7676
b.fail( 'should not return NaN' );
7777
}
7878
b.pass( 'benchmark finished' );

0 commit comments

Comments
 (0)