@@ -25,7 +25,7 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">blas/e
25
25
< div class ='fl pad1y space-right2 '>
26
26
< span class ="strong "> 100% </ span >
27
27
< span class ="quiet "> Statements</ span >
28
- < span class ='fraction '> 109/109 </ span >
28
+ < span class ='fraction '> 120/120 </ span >
29
29
</ div >
30
30
31
31
@@ -46,7 +46,7 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">blas/e
46
46
< div class ='fl pad1y space-right2 '>
47
47
< span class ="strong "> 100% </ span >
48
48
< span class ="quiet "> Lines</ span >
49
- < span class ='fraction '> 109/109 </ span >
49
+ < span class ='fraction '> 120/120 </ span >
50
50
</ div >
51
51
52
52
@@ -172,7 +172,29 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">blas/e
172
172
< a name ='L107 '> </ a > < a href ='#L107 '> 107</ a >
173
173
< a name ='L108 '> </ a > < a href ='#L108 '> 108</ a >
174
174
< a name ='L109 '> </ a > < a href ='#L109 '> 109</ a >
175
- < a name ='L110 '> </ a > < a href ='#L110 '> 110</ a > </ td > < td class ="line-coverage quiet "> < span class ="cline-any cline-yes "> 1x</ span >
175
+ < a name ='L110 '> </ a > < a href ='#L110 '> 110</ a >
176
+ < a name ='L111 '> </ a > < a href ='#L111 '> 111</ a >
177
+ < a name ='L112 '> </ a > < a href ='#L112 '> 112</ a >
178
+ < a name ='L113 '> </ a > < a href ='#L113 '> 113</ a >
179
+ < a name ='L114 '> </ a > < a href ='#L114 '> 114</ a >
180
+ < a name ='L115 '> </ a > < a href ='#L115 '> 115</ a >
181
+ < a name ='L116 '> </ a > < a href ='#L116 '> 116</ a >
182
+ < a name ='L117 '> </ a > < a href ='#L117 '> 117</ a >
183
+ < a name ='L118 '> </ a > < a href ='#L118 '> 118</ a >
184
+ < a name ='L119 '> </ a > < a href ='#L119 '> 119</ a >
185
+ < a name ='L120 '> </ a > < a href ='#L120 '> 120</ a >
186
+ < a name ='L121 '> </ a > < a href ='#L121 '> 121</ a > </ td > < td class ="line-coverage quiet "> < span class ="cline-any cline-yes "> 1x</ span >
187
+ < span class ="cline-any cline-yes "> 1x</ span >
188
+ < span class ="cline-any cline-yes "> 1x</ span >
189
+ < span class ="cline-any cline-yes "> 1x</ span >
190
+ < span class ="cline-any cline-yes "> 1x</ span >
191
+ < span class ="cline-any cline-yes "> 1x</ span >
192
+ < span class ="cline-any cline-yes "> 1x</ span >
193
+ < span class ="cline-any cline-yes "> 1x</ span >
194
+ < span class ="cline-any cline-yes "> 1x</ span >
195
+ < span class ="cline-any cline-yes "> 1x</ span >
196
+ < span class ="cline-any cline-yes "> 1x</ span >
197
+ < span class ="cline-any cline-yes "> 1x</ span >
176
198
< span class ="cline-any cline-yes "> 1x</ span >
177
199
< span class ="cline-any cline-yes "> 1x</ span >
178
200
< span class ="cline-any cline-yes "> 1x</ span >
@@ -344,14 +366,14 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">blas/e
344
366
* @name indexOf
345
367
* @type {Function}
346
368
* @param {ndarrayLike} x - input ndarray
347
- * @param {( ndarrayLike|number) } searchElement - search element
348
- * @param {( ndarrayLike|number)} [ fromIndex] - index from which to begin searching
369
+ * @param {ndarrayLike} searchElement - search element
370
+ * @param {ndarrayLike} fromIndex - indices from which to begin searching
349
371
* @param {Options} [options] - function options
350
372
* @param {IntegerArray} [options.dims] - list of dimensions over which to perform operation
351
373
* @param {string} [options.dtype] - output ndarray data type
352
374
* @throws {TypeError} first argument must be an ndarray-like object
353
- * @throws {TypeError} search element argument must be either an ndarray-like object or a scalar value
354
- * @throws {TypeError} from index argument must be either an ndarray-like object or a scalar value
375
+ * @throws {TypeError} second argument must be either an ndarray-like object
376
+ * @throws {TypeError} third argument must be either an ndarray-like object
355
377
* @throws {TypeError} options argument must be an object
356
378
* @throws {RangeError} dimension indices must not exceed input ndarray bounds
357
379
* @throws {RangeError} number of dimension indices must not exceed the number of input ndarray dimensions
@@ -360,6 +382,7 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">blas/e
360
382
*
361
383
* @example
362
384
* var Float64Array = require( '@stdlib/array/float64' );
385
+ * var scalar2ndarray = require( '@stdlib/ndarray/from-scalar' );
363
386
* var ndarray = require( '@stdlib/ndarray/ctor' );
364
387
*
365
388
* // Create a data buffer:
@@ -377,8 +400,18 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">blas/e
377
400
* // Create an input ndarray:
378
401
* var x = new ndarray( 'float64', xbuf, sh, sx, ox, 'row-major' );
379
402
*
403
+ * // Create a search element ndarray:
404
+ * var searchElement = scalar2ndarray( 4.0, {
405
+ * 'dtype': 'float64'
406
+ * })
407
+ *
408
+ * // Create a from index ndarray:
409
+ * var fromIndex = scalar2ndarray( 0, {
410
+ * 'dtype': 'int32'
411
+ * })
412
+ *
380
413
* // Find index:
381
- * var out = indexOf( x, 4.0 );
414
+ * var out = indexOf( x, searchElement, fromIndex );
382
415
* // returns <ndarray>
383
416
*
384
417
* var idx = out.get();
@@ -397,7 +430,7 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">blas/e
397
430
< div class ='footer quiet pad2 space-top1 center small '>
398
431
Code coverage generated by
399
432
< a href ="https://istanbul.js.org/ " target ="_blank " rel ="noopener noreferrer "> istanbul</ a >
400
- at 2025-07-05T19:16:14.409Z
433
+ at 2025-07-06T09:25:49.211Z
401
434
</ div >
402
435
< script src ="../../../../prettify.js "> </ script >
403
436
< script >
0 commit comments