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 c3b728f commit 707bb0dCopy full SHA for 707bb0d
lib/node_modules/@stdlib/math/base/special/max/benchmark/c/native/benchmark.c
@@ -91,15 +91,15 @@ static double rand_double( void ) {
91
*/
92
static double benchmark( void ) {
93
double elapsed;
94
- double t;
95
double x[ 100 ];
96
double y[ 100 ];
+ double t;
97
double z;
98
int i;
99
100
for ( i = 0; i < 100; i++ ) {
101
- x = ( 200.0*rand_double() ) - 100.0;
102
- y = ( 200.0*rand_double() ) - 100.0;
+ x[ i ] = ( 200.0*rand_double() ) - 100.0;
+ y[ i ] = ( 200.0*rand_double() ) - 100.0;
103
}
104
105
t = tic();
0 commit comments