Skip to content

Commit f257760

Browse files
authored
docs: update examples of stats/base/dmin
PR-URL: #4713 Reviewed-by: Philipp Burckhardt <pburckhardt@outlook.com>
1 parent 3d9c97f commit f257760

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

lib/node_modules/@stdlib/stats/base/dmin/README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ Computes the minimum value of a double-precision floating-point strided array.
162162
```c
163163
const double x[] = { 1.0, -2.0, 2.0 };
164164

165-
double v = stdlib_strided_dmin( 3, x, 2 );
165+
double v = stdlib_strided_dmin( 3, x, 1 );
166166
// returns -2.0
167167
```
168168
@@ -183,7 +183,7 @@ Computes the minimum value of a double-precision floating-point strided array us
183183
```c
184184
const double x[] = { 1.0, -2.0, 2.0 };
185185

186-
double v = stdlib_strided_dmin_ndarray( 3, x, 2, 0 );
186+
double v = stdlib_strided_dmin_ndarray( 3, x, 1, 0 );
187187
// returns -2.0
188188
```
189189
@@ -218,7 +218,6 @@ double stdlib_strided_dmin_ndarray( const CBLAS_INT N, const double *X, const CB
218218

219219
```c
220220
#include "stdlib/stats/base/dmin.h"
221-
#include <stdint.h>
222221
#include <stdio.h>
223222

224223
int main( void ) {

lib/node_modules/@stdlib/stats/base/dmin/examples/c/example.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
*/
1818

1919
#include "stdlib/stats/base/dmin.h"
20-
#include <stdint.h>
2120
#include <stdio.h>
2221

2322
int main( void ) {

0 commit comments

Comments
 (0)