You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -36,12 +36,12 @@ type SearchElement<T> = typedndarray<T> | T;
36
36
/**
37
37
* From index.
38
38
*/
39
-
typeFromIndex<U>=typedndarray<U>|U;
39
+
typeFromIndex=typedndarray<number>|number;
40
40
41
41
/**
42
42
* Output array.
43
43
*/
44
-
typeOutputArray<U>=typedndarray<U>;
44
+
typeOutputArray=typedndarray<number>;
45
45
46
46
/**
47
47
* Interface defining "base" options.
@@ -82,7 +82,6 @@ interface IndexOf {
82
82
* @returns output ndarray
83
83
*
84
84
* @example
85
-
* var ndarray2array = require( '@stdlib/ndarray/to-array' );
86
85
* var array = require( '@stdlib/ndarray/array' );
87
86
*
88
87
* var x = array( [ -1.0, 2.0, -3.0 ] );
@@ -93,7 +92,7 @@ interface IndexOf {
93
92
* var idx = y.get();
94
93
* // returns 1
95
94
*/
96
-
<T=unknown,U=unknown>(x: InputArray<T>,searchElement: SearchElement<T>,options?: Options): OutputArray<U>;// NOTE: we lose type specificity here, but retaining specificity would likely be difficult and/or tedious to completely enumerate, as the output ndarray data type is dependent on how `x` interacts with output data type policy and whether that policy has been overridden by `options.dtype`.
95
+
<T=unknown>(x: InputArray<T>,searchElement: SearchElement<T>,options?: Options): OutputArray;// NOTE: we lose type specificity here, but retaining specificity would likely be difficult and/or tedious to completely enumerate, as the output ndarray data type is dependent on how `x` interacts with output data type policy and whether that policy has been overridden by `options.dtype`.
97
96
98
97
/**
99
98
* Returns the first index of specified search element along one or more ndarray dimensions.
@@ -105,7 +104,6 @@ interface IndexOf {
105
104
* @returns output ndarray
106
105
*
107
106
* @example
108
-
* var ndarray2array = require( '@stdlib/ndarray/to-array' );
109
107
* var array = require( '@stdlib/ndarray/array' );
110
108
*
111
109
* var x = array( [ -1.0, 2.0, -3.0, 2.0, -5.0, 6.0 ] );
@@ -116,7 +114,7 @@ interface IndexOf {
116
114
* var idx = y.get();
117
115
* // returns 3
118
116
*/
119
-
<T=unknown,U=unknown>(x: InputArray<T>,searchElement: SearchElement<T>,fromIndex: FromIndex<U>,options?: Options): OutputArray<U>;// NOTE: we lose type specificity here, but retaining specificity would likely be difficult and/or tedious to completely enumerate, as the output ndarray data type is dependent on how `x` interacts with output data type policy and whether that policy has been overridden by `options.dtype`.
0 commit comments