Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions lib/node_modules/@stdlib/stats/base/dmin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ var v = dmin.ndarray( x.length, x, 1, 0 );

The function has the following additional parameters:

- **offset**: starting index for `x`.
- **offsetX**: starting index for `x`.

While [`typed array`][mdn-typed-array] views mandate a view offset based on the underlying buffer, the offset parameter supports indexing semantics based on a starting index. For example, to calculate the minimum value for every other element in `x` starting from the second element

Expand Down Expand Up @@ -160,7 +160,7 @@ console.log( v );
Computes the minimum value of a double-precision floating-point strided array.

```c
const double x[] = { 1.0, -2.0, 2 };
const double x[] = { 1.0, -2.0, 2.0 };

double v = stdlib_strided_dmin( 3, x, 2 );
// returns -2.0
Expand All @@ -181,7 +181,7 @@ double stdlib_strided_dmin( const CBLAS_INT N, const double *X, const CBLAS_INT
Computes the minimum value of a double-precision floating-point strided array using alternative indexing semantics.

```c
const double x[] = { 1.0, -2.0, 2 };
const double x[] = { 1.0, -2.0, 2.0 };

double v = stdlib_strided_dmin_ndarray( 3, x, 2, 0 );
// returns -2.0
Expand Down Expand Up @@ -229,10 +229,10 @@ int main( void ) {
const int N = 4;

// Specify the stride length:
const int stride = 2;
const int strideX = 2;

// Compute the minimum value:
double v = stdlib_strided_dmin( N, x, stride );
double v = stdlib_strided_dmin( N, x, strideX );

// Print the result:
printf( "min: %lf\n", v );
Expand Down
Loading