@@ -82,7 +82,7 @@ var idx = dlastIndexOf( 4, 3.0, x, 2 );
82
82
// returns 2
83
83
```
84
84
85
- Note that indexing is relative to the last index. To introduce an offset, use [ ` typed array ` ] [ mdn-typed-array ] views.
85
+ Note that indexing is relative to the first index. To introduce an offset, use [ ` typed array ` ] [ mdn-typed-array ] views.
86
86
87
87
``` javascript
88
88
var Float64Array = require ( ' @stdlib/array/float64' );
@@ -94,7 +94,7 @@ var x0 = new Float64Array( [ -2.0, 3.0, -6.0, -4.0, 5.0, 3.0 ] );
94
94
var x1 = new Float64Array ( x0 .buffer , x0 .BYTES_PER_ELEMENT * 1 ); // start at 2nd element
95
95
96
96
// Find index:
97
- var idx = dlastIndexOf ( 5 , 3.0 , x1, 2 );
97
+ var idx = dlastIndexOf ( 3 , 3.0 , x1, 2 );
98
98
// returns 2
99
99
```
100
100
@@ -212,7 +212,7 @@ The function accepts the following arguments:
212
212
- **strideX**: `[in] CBLAS_INT` stride length.
213
213
214
214
```c
215
- CBLAS_INT N stdlib_strided_dlast_index_of( const CBLAS_INT N, const double searchElement, const double *X, const CBLAS_INT strideX );
215
+ CBLAS_INT stdlib_strided_dlast_index_of( const CBLAS_INT N, const double searchElement, const double *X, const CBLAS_INT strideX );
216
216
```
217
217
218
218
#### stdlib_strided_dlast_index_of_ndarray( N, searchElement, \* X, strideX, offsetX )
@@ -222,7 +222,7 @@ Returns the last index of a specified search element in a double-precision float
222
222
``` c
223
223
double x[] = { 1.0, 2.0, 3.0, 2.0 };
224
224
225
- int idx = stdlib_strided_dlast_index_of ( 4, 2.0, x, 1, 0 );
225
+ int idx = stdlib_strided_dlast_index_of_ndarray ( 4, 2.0, x, 1, 0 );
226
226
// returns 3
227
227
```
228
228
0 commit comments