File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
lib/node_modules/@stdlib/math/base/special/croundnf/benchmark Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 2121// MODULES //
2222
2323var bench = require ( '@stdlib/bench' ) ;
24+ var randu = require ( '@stdlib/random/base/randu' ) ;
2425var uniform = require ( '@stdlib/random/array/uniform' ) ;
2526var filledarrayBy = require ( '@stdlib/array/filled-by' ) ;
2627var floor = require ( '@stdlib/math/base/special/floor' ) ;
@@ -79,10 +80,7 @@ function createBenchmark( len ) {
7980
8081 b . tic ( ) ;
8182 for ( i = 0 ; i < b . iterations ; i ++ ) {
82- y = croundnf (
83- new Complex64 ( xre [ i % len ] , xim [ i % len ] ) ,
84- n [ i % len ]
85- ) ;
83+ y = croundnf ( new Complex64 ( xre [ i % len ] , xim [ i % len ] ) , n [ i % len ] ) ;
8684 if ( isnanf ( realf ( y ) ) ) {
8785 b . fail ( 'should not return NaN' ) ;
8886 }
You can’t perform that action at this time.
0 commit comments