Skip to content

Commit 9e9c7fa

Browse files
committed
examples updated
1 parent fbe9c46 commit 9e9c7fa

File tree

2 files changed

+8
-2
lines changed
  • lib/node_modules/@stdlib/math/base/special/minmax

2 files changed

+8
-2
lines changed

lib/node_modules/@stdlib/math/base/special/minmax/include/stdlib/math/base/special/minmax.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ extern "C" {
3535
*
3636
* @param x First value
3737
* @param y Second value
38+
* @param out output array
39+
* @param stride output array stride
40+
* @param offset output array index offset
3841
* @return A double containing the minimum and maximum values
3942
*/
4043
double stdlib_base_minmax(const double x, const double y, double* out, int stride, int offset );

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@
2727
*
2828
* @param x First value
2929
* @param y Second value
30-
* @return A double* containing the minimum and maximum values
30+
* @param out output array
31+
* @param stride output array stride
32+
* @param offset output array index offset
33+
* @return A double containing the minimum and maximum values
3134
*
3235
* @example
3336
* double* y = stdlib_base_minmax( 4.0, -5.0 );
@@ -46,6 +49,6 @@ double stdlib_base_minmax( const double x, const double y, double* out, int stri
4649
out[ offset + stride ] = stdlib_base_max( x, y );
4750
}
4851

49-
return out[0];
52+
return *out;
5053

5154
}

0 commit comments

Comments
 (0)