Skip to content

Commit e7a650a

Browse files
authored
bench: use single-precision assertion utility
Signed-off-by: Athan <kgryte@gmail.com>
1 parent 97fc0e0 commit e7a650a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • lib/node_modules/@stdlib/blas/base/ndarray/sasum/benchmark

lib/node_modules/@stdlib/blas/base/ndarray/sasum/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 ndarray = require( '@stdlib/ndarray/base/ctor' );
2828
var format = require( '@stdlib/string/format' );
@@ -68,12 +68,12 @@ function createBenchmark( len ) {
6868
b.tic();
6969
for ( i = 0; i < b.iterations; i++ ) {
7070
z = sasum( [ x ] );
71-
if ( isnan( z ) ) {
71+
if ( isnanf( z ) ) {
7272
b.fail( 'should not return NaN' );
7373
}
7474
}
7575
b.toc();
76-
if ( isnan( z ) ) {
76+
if ( isnanf( z ) ) {
7777
b.fail( 'should not return NaN' );
7878
}
7979
b.pass( 'benchmark finished' );

0 commit comments

Comments
 (0)