Skip to content

Commit 3007d44

Browse files
committed
fix: add randu import and fix function call formatting in benchmark.js
1 parent 3b02ebc commit 3007d44

File tree

1 file changed

+2
-4
lines changed
  • lib/node_modules/@stdlib/math/base/special/croundnf/benchmark

1 file changed

+2
-4
lines changed

lib/node_modules/@stdlib/math/base/special/croundnf/benchmark/benchmark.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
// MODULES //
2222

2323
var bench = require( '@stdlib/bench' );
24+
var randu = require( '@stdlib/random/base/randu' );
2425
var uniform = require( '@stdlib/random/array/uniform' );
2526
var filledarrayBy = require( '@stdlib/array/filled-by' );
2627
var 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
}

0 commit comments

Comments
 (0)