Skip to content

Commit e75dd4d

Browse files
authored
bench: replace usage of LEN
1 parent cbc8409 commit e75dd4d

File tree

1 file changed

+2
-2
lines changed
  • lib/node_modules/@stdlib/stats/base/dists/normal/pdf/benchmark/c

1 file changed

+2
-2
lines changed

lib/node_modules/@stdlib/stats/base/dists/normal/pdf/benchmark/c/benchmark.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,15 +102,15 @@ static double benchmark( void ) {
102102

103103
double x[ 100 ];
104104

105-
for ( i = 0; i < LEN; i++ ) {
105+
for ( i = 0; i < 100; i++ ) {
106106
x[ i ] = random_uniform( -100.0, 100.0 );
107107
mu[ i ] = random_uniform( -50.0, 50.0 );
108108
sigma[ i ] = random_uniform( STDLIB_CONSTANT_FLOAT64_EPS, 20.0 );
109109
}
110110

111111
t = tic();
112112
for ( i = 0; i < ITERATIONS; i++ ) {
113-
y = stdlib_base_dists_normal_pdf( x[ i%LEN ], mu[ i%LEN ], sigma[ i%LEN ] );
113+
y = stdlib_base_dists_normal_pdf( x[ i%100 ], mu[ i%100 ], sigma[ i%100 ] );
114114
if ( y != y ) {
115115
printf( "should not return NaN\n" );
116116
break;

0 commit comments

Comments
 (0)