File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
lib/node_modules/@stdlib/stats/base/ndarray/smaxsorted/benchmark Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 2222
2323var bench = require ( '@stdlib/bench' ) ;
2424var linspace = require ( '@stdlib/array/linspace' ) ;
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 pkg = require ( './../package.json' ) . name ;
@@ -61,12 +61,12 @@ function createBenchmark( len ) {
6161 b . tic ( ) ;
6262 for ( i = 0 ; i < b . iterations ; i ++ ) {
6363 v = smaxsorted ( [ x ] ) ;
64- if ( isnan ( v ) ) {
64+ if ( isnanf ( v ) ) {
6565 b . fail ( 'should not return NaN' ) ;
6666 }
6767 }
6868 b . toc ( ) ;
69- if ( isnan ( v ) ) {
69+ if ( isnanf ( v ) ) {
7070 b . fail ( 'should not return NaN' ) ;
7171 }
7272 b . pass ( 'benchmark finished' ) ;
You can’t perform that action at this time.
0 commit comments