File tree Expand file tree Collapse file tree
lib/node_modules/@stdlib/blas/base/ndarray/sasum/benchmark Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2222
2323var bench = require ( '@stdlib/bench' ) ;
2424var 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 ' ) ;
2626var pow = require ( '@stdlib/math/base/special/pow' ) ;
2727var ndarray = require ( '@stdlib/ndarray/base/ctor' ) ;
2828var 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' ) ;
You can’t perform that action at this time.
0 commit comments