We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9425351 commit 8d078d9Copy full SHA for 8d078d9
lib/node_modules/@stdlib/stats/base/dists/normal/pdf/benchmark/c/benchmark.c
@@ -27,7 +27,6 @@
27
#define NAME "normal-pdf"
28
#define ITERATIONS 1000000
29
#define REPEATS 3
30
-#define LEN 100
31
32
/**
33
* Prints the TAP version.
@@ -94,13 +93,13 @@ static double random_uniform( const double min, const double max ) {
94
93
* @return elapsed time in seconds
95
*/
96
static double benchmark( void ) {
97
- double elapsed;
98
- double x[ LEN ];
99
- double mu[ LEN ];
100
- double sigma[ LEN ];
+ int i;
101
double y;
102
double t;
103
- int i;
+ double elapsed;
+ double mu[ 100 ];
+ double sigma[ 100 ];
+ double x[ 100 ];
104
105
for ( i = 0; i < LEN; i++ ) {
106
x[ i ] = random_uniform( -100.0, 100.0 );
0 commit comments