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 508c857 commit 59506acCopy full SHA for 59506ac
lib/node_modules/@stdlib/math/base/special/cabs2f/benchmark/c/native/benchmark.c
@@ -102,14 +102,14 @@ static double benchmark( void ) {
102
stdlib_complex64_t z[ 100 ];
103
104
for ( i = 0; i < 100; i++ ) {
105
- re = ( 1000.0f * rand_float() ) - 500.0f;
106
- im = ( 1000.0f * rand_float() ) - 500.0f;
+ re = ( 1000.0f*rand_float() ) - 500.0f;
+ im = ( 1000.0f*rand_float() ) - 500.0f;
107
z[ i ] = stdlib_complex64( re, im );
108
}
109
110
t = tic();
111
for ( i = 0; i < ITERATIONS; i++ ) {
112
- y = stdlib_base_cabs2f( z[ i % 100 ] );
+ y = stdlib_base_cabs2f( z[ i%100 ] );
113
if ( y != y ) {
114
printf( "should not return NaN\n" );
115
break;
0 commit comments