For example, with the 'sum' reducer applied to 5 arrays with shape 2x2, the output will be a 2x2 array, where each position is the sum of the 5 values at that position.
Usage | Returns |
---|---|
Reducer.forEachElement() | Reducer |
Argument | Type | Details |
---|---|---|
this: reducer | Reducer | The reducer to apply to each array element. |