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
@@ -48,9 +47,13 @@ type OutputArray = typedndarray<number>;
48
47
*/
49
48
interfaceBaseOptions{
50
49
/**
51
-
* List of dimensions over which to perform operation.
50
+
* Dimension over which to perform operation. Default: `-1`.
51
+
*
52
+
* ## Notes
53
+
*
54
+
* - If provided a negative integer, the dimension along which to perform the operation is determined by counting backward from the last dimension (where `-1` refers to the last dimension).
52
55
*/
53
-
dims?: ArrayLike<number>;
56
+
dim?: number;
54
57
}
55
58
56
59
/**
@@ -76,6 +79,11 @@ interface IndexOf {
76
79
/**
77
80
* Returns the first index of a specified search element along an ndarray dimension.
78
81
*
82
+
* ## Notes
83
+
*
84
+
* - When searching for a search element, the function checks for equality using the strict equality operator `===`. As a consequence, `NaN` values are considered distinct, and `-0` and `+0` are considered the same.
85
+
* - If unable to find a search element along an ndarray dimension, the corresponding element in the returned ndarray is `-1`.
86
+
*
79
87
* @param x - input ndarray
80
88
* @param searchElement - search element
81
89
* @param options - function options
@@ -97,6 +105,11 @@ interface IndexOf {
97
105
/**
98
106
* Returns the first index of a specified search element along an ndarray dimension.
99
107
*
108
+
* ## Notes
109
+
*
110
+
* - When searching for a search element, the function checks for equality using the strict equality operator `===`. As a consequence, `NaN` values are considered distinct, and `-0` and `+0` are considered the same.
111
+
* - If unable to find a search element along an ndarray dimension, the corresponding element in the returned ndarray is `-1`.
112
+
*
100
113
* @param x - input ndarray
101
114
* @param searchElement - search element
102
115
* @param fromIndex - index from which to begin searching
@@ -119,6 +132,11 @@ interface IndexOf {
119
132
/**
120
133
* Returns the first index of a specified search element along an ndarray dimension and assigns results to a provided output ndarray.
121
134
*
135
+
* ## Notes
136
+
*
137
+
* - When searching for a search element, the function checks for equality using the strict equality operator `===`. As a consequence, `NaN` values are considered distinct, and `-0` and `+0` are considered the same.
138
+
* - If unable to find a search element along an ndarray dimension, the corresponding element in the returned ndarray is `-1`.
139
+
*
122
140
* @param x - input ndarray
123
141
* @param searchElement - search element
124
142
* @param out - output ndarray
@@ -148,6 +166,11 @@ interface IndexOf {
148
166
/**
149
167
* Returns the first index of a specified search element along an ndarray dimension and assigns results to a provided output ndarray.
150
168
*
169
+
* ## Notes
170
+
*
171
+
* - When searching for a search element, the function checks for equality using the strict equality operator `===`. As a consequence, `NaN` values are considered distinct, and `-0` and `+0` are considered the same.
172
+
* - If unable to find a search element along an ndarray dimension, the corresponding element in the returned ndarray is `-1`.
173
+
*
151
174
* @param x - input ndarray
152
175
* @param searchElement - search element
153
176
* @param fromIndex - index from which to begin searching
@@ -179,6 +202,11 @@ interface IndexOf {
179
202
/**
180
203
* Returns the first index of a specified search element along an ndarray dimension.
181
204
*
205
+
* ## Notes
206
+
*
207
+
* - When searching for a search element, the function checks for equality using the strict equality operator `===`. As a consequence, `NaN` values are considered distinct, and `-0` and `+0` are considered the same.
208
+
* - If unable to find a search element along an ndarray dimension, the corresponding element in the returned ndarray is `-1`.
209
+
*
182
210
* @param x - input ndarray
183
211
* @param searchElement - search element
184
212
* @param fromIndex - index from which to begin searching
// The compiler throws an error if the function is provided a search element argument which is not an ndarray or scalar value...
80
+
// The compiler throws an error if the function is provided a search element argument which is not an ndarray or scalar value having the same "type"...
// The compiler throws an error if the `assign` method is provided a search element argument which is not an ndarray or scalar value...
298
+
// The compiler throws an error if the `assign` method is provided a search element argument which is not an ndarray or scalar value having the same "type"...
0 commit comments