|
1 | 1 |
|
2 | 2 | {{alias}}( N, x, strideX, clbk[, thisArg] )
|
3 |
| - Calculates the minimum value of a strided array via a callback function, |
| 3 | + Computes the minimum value of a strided array via a callback function, |
4 | 4 | ignoring `NaN` values.
|
5 | 5 |
|
6 |
| - The `N` and `strideX` parameters determine which elements in `x` are accessed |
7 |
| - at runtime. |
| 6 | + The `N` and stride parameters determine which elements in the strided array |
| 7 | + are accessed at runtime. |
8 | 8 |
|
9 | 9 | Indexing is relative to the first index. To introduce an offset, use typed
|
10 | 10 | array views.
|
|
35 | 35 | like (excluding strings and functions).
|
36 | 36 |
|
37 | 37 | strideX: integer
|
38 |
| - Index increment for `x`. |
| 38 | + Stride length. |
39 | 39 |
|
40 | 40 | clbk: Function
|
41 | 41 | Callback function.
|
|
56 | 56 | > {{alias}}( x.length, x, 1, accessor )
|
57 | 57 | -10.0
|
58 | 58 |
|
59 |
| - // Using `N` and `strideX` parameters: |
| 59 | + // Using `N` and stride parameters: |
60 | 60 | > x = [ -2.0, 1.0, 3.0, -5.0, 4.0, -1.0, NaN, -3.0 ];
|
61 |
| - > var N = {{alias:@stdlib/math/base/special/floor}}( x.length / 2 ); |
62 |
| - > {{alias}}( N, x, 2, accessor ) |
| 61 | + > {{alias}}( 4, x, 2, accessor ) |
63 | 62 | -4.0
|
64 | 63 |
|
65 | 64 | // Using view offsets:
|
66 | 65 | > var x0 = new {{alias:@stdlib/array/float64}}( [ 1.0, -2.0, 3.0, -4.0, 5.0, -6.0 ] );
|
67 | 66 | > var x1 = new {{alias:@stdlib/array/float64}}( x0.buffer, x0.BYTES_PER_ELEMENT*1 );
|
68 |
| - > N = {{alias:@stdlib/math/base/special/floor}}( x0.length / 2 ); |
69 |
| - > {{alias}}( N, x1, 2, accessor ) |
| 67 | + > {{alias}}( 3, x1, 2, accessor ) |
70 | 68 | -12.0
|
71 | 69 |
|
| 70 | + |
72 | 71 | {{alias}}.ndarray( N, x, strideX, offsetX, clbk[, thisArg] )
|
73 |
| - Calculates the minimum value of a strided array via a callback function, |
| 72 | + Computes the minimum value of a strided array via a callback function, |
74 | 73 | ignoring `NaN` values and using alternative indexing semantics.
|
75 | 74 |
|
76 | 75 | While typed array views mandate a view offset based on the underlying
|
77 |
| - buffer, the `offsetX` parameter supports indexing semantics based on a |
| 76 | + buffer, the offset parameter supports indexing semantics based on a |
78 | 77 | starting index.
|
79 | 78 |
|
80 | 79 | Parameters
|
|
87 | 86 | like (excluding strings and functions).
|
88 | 87 |
|
89 | 88 | strideX: integer
|
90 |
| - Index increment for `x`. |
| 89 | + Stride length. |
91 | 90 |
|
92 | 91 | offsetX: integer
|
93 | 92 | Starting index of `x`.
|
|
113 | 112 |
|
114 | 113 | // Using an index offset:
|
115 | 114 | > x = [ 1.0, -2.0, 3.0, -4.0, 5.0, -6.0 ];
|
116 |
| - > var N = {{alias:@stdlib/math/base/special/floor}}( x.length / 2 ); |
117 |
| - > {{alias}}.ndarray( N, x, 2, 1, accessor ) |
| 115 | + > {{alias}}.ndarray( 3, x, 2, 1, accessor ) |
118 | 116 | -12.0
|
119 | 117 |
|
120 | 118 | See Also
|
|
0 commit comments