@@ -25,7 +25,7 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">blas/e
2525 < div class ='fl pad1y space-right2 '>
2626 < span class ="strong "> 100% </ span >
2727 < span class ="quiet "> Statements</ span >
28- < span class ='fraction '> 109/109 </ span >
28+ < span class ='fraction '> 120/120 </ span >
2929 </ div >
3030
3131
@@ -46,7 +46,7 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">blas/e
4646 < div class ='fl pad1y space-right2 '>
4747 < span class ="strong "> 100% </ span >
4848 < span class ="quiet "> Lines</ span >
49- < span class ='fraction '> 109/109 </ span >
49+ < span class ='fraction '> 120/120 </ span >
5050 </ div >
5151
5252
@@ -172,7 +172,29 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">blas/e
172172< a name ='L107 '> </ a > < a href ='#L107 '> 107</ a >
173173< a name ='L108 '> </ a > < a href ='#L108 '> 108</ a >
174174< 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 >
176198< span class ="cline-any cline-yes "> 1x</ span >
177199< span class ="cline-any cline-yes "> 1x</ span >
178200< 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
344366* @name indexOf
345367* @type {Function}
346368* @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
349371* @param {Options} [options] - function options
350372* @param {IntegerArray} [options.dims] - list of dimensions over which to perform operation
351373* @param {string} [options.dtype] - output ndarray data type
352374* @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
355377* @throws {TypeError} options argument must be an object
356378* @throws {RangeError} dimension indices must not exceed input ndarray bounds
357379* @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
360382*
361383* @example
362384* var Float64Array = require( '@stdlib/array/float64' );
385+ * var scalar2ndarray = require( '@stdlib/ndarray/from-scalar' );
363386* var ndarray = require( '@stdlib/ndarray/ctor' );
364387*
365388* // Create a data buffer:
@@ -377,8 +400,18 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">blas/e
377400* // Create an input ndarray:
378401* var x = new ndarray( 'float64', xbuf, sh, sx, ox, 'row-major' );
379402*
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+ *
380413* // Find index:
381- * var out = indexOf( x, 4.0 );
414+ * var out = indexOf( x, searchElement, fromIndex );
382415* // returns <ndarray>
383416*
384417* var idx = out.get();
@@ -397,7 +430,7 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">blas/e
397430 < div class ='footer quiet pad2 space-top1 center small '>
398431 Code coverage generated by
399432 < 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
401434 </ div >
402435 < script src ="../../../../prettify.js "> </ script >
403436 < script >
0 commit comments