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
- The reduction function is expected to have the following signature:
198
200
199
201
```text
200
-
fcn( arrays[, options], clbk[, thisArg] )
202
+
fcn( arrays[, options], wrappedCallback )
201
203
```
202
204
203
205
where
204
206
205
207
- **arrays**: array containing a subarray of the input ndarray and any additional ndarray arguments as zero-dimensional ndarrays.
206
-
- **options**: function options which are passed through to `fcn` (_optional_).
207
-
- **clbk**: callback function which is passed through to `fcn`.
208
-
- **thisArg**: callback execution context which is passed through to `fcn` (_optional_).
208
+
- **options**: function options (_optional_).
209
+
- **wrappedCallback**: callback function. This function is a wrapper around a provided `clbk` argument.
209
210
210
211
- For very high-dimensional ndarrays which are non-contiguous, one should consider copying the underlying data to contiguous memory before performing a reduction in order to achieve better performance.
211
212
@@ -227,30 +228,29 @@ var everyBy = require( '@stdlib/ndarray/base/every-by' );
227
228
var unaryReduceSubarrayBy = require( '@stdlib/ndarray/base/unary-reduce-subarray-by' );
* Performs a reduction over a list of specified dimensions in an input ndarray according to a callback function and assigns results to a provided output ndarray.
* Performs a reduction over a list of specified dimensions in an input ndarray according to a callback function and assigns results to a provided output ndarray.
@@ -152,14 +220,9 @@ declare function unaryReduceSubarrayBy<T = unknown, U = unknown>( fcn: Function,
152
220
* var everyBy = require( '@stdlib/ndarray/base/every-by' );
0 commit comments