Skip to content

Commit c89beac

Browse files
committed
benchs examples
1 parent 0598ee5 commit c89beac

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/node_modules/@stdlib/math/base/special/minmax/benchmark/c/native/benchmark.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ static double benchmark( void ) {
104104

105105
t = tic();
106106
for ( i = 0; i < ITERATIONS; i++ ) {
107-
minmax( x1[ i % 100 ], x2[ i % 100 ] );
107+
stdlib_base_minmax( x1[ i % 100 ], x2[ i % 100 ], &y, 1, 0 );
108108
if ( y != y ) {
109109
printf( "should not return NaN\n" );
110110
break;

lib/node_modules/@stdlib/math/base/special/minmax/examples/c/example.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ int main(void) {
2727
int i;
2828
for ( i = 0; i < 10; i++ ) {
2929
double out[] = { 0.0, 0.0 };
30-
minmax( x1[ i ], x2[ i ] );
30+
stdlib_base_minmax( x1[ i ], x2[ i ], &out, 1, 0 );
3131
printf( "x1[ %d ]: %lf, x2[ %d ]: %lf, minmax( x1[ %d ], x2[ %d ] ): ( %lf, %lf )\n", i, x1[ i ], i, x2[ i ], i, i, out[0], out[1] );
3232
}
3333
}

lib/node_modules/@stdlib/math/base/special/minmax/src/addon.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
double minmax( double x, double y ) {
3535

36-
double result[ 2 ];
36+
double result;
3737

3838
stdlib_base_minmax( x, y, &result, 1, 0 );
3939

0 commit comments

Comments
 (0)