File tree 2 files changed +2
-2
lines changed
lib/node_modules/@stdlib/math/base/special
gamma-lanczos-sum/benchmark
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ static double benchmark( void ) {
102
102
103
103
t = tic ();
104
104
for ( i = 0 ; i < ITERATIONS ; i ++ ) {
105
- y = stdlib_base_cbrtf ( x [ i %( sizeof ( x )/ sizeof ( x [ 0 ])) ] );
105
+ y = stdlib_base_cbrtf ( x [ i %x . length ] );
106
106
if ( y != y ) {
107
107
printf ( "should not return NaN\n" );
108
108
break ;
Original file line number Diff line number Diff line change 21
21
// MODULES //
22
22
23
23
var bench = require ( '@stdlib/bench' ) ;
24
- var uniform = require ( '@stdlib/random/array /uniform' ) ;
24
+ var uniform = require ( '@stdlib/random/base /uniform' ) ;
25
25
var isnan = require ( '@stdlib/math/base/assert/is-nan' ) ;
26
26
var pkg = require ( './../package.json' ) . name ;
27
27
var gammaLanczosSum = require ( './../lib' ) ;
You can’t perform that action at this time.
0 commit comments