reduce

abstract fun reduce(operation: (Double, Double) -> Double): Double

Reduces the array with an operation.

Return

the reduced value

Parameters

operation

the operation


abstract fun reduce(axis: Int, operation: (Double, Double) -> Double): F64Array

Reduces the array with an operation along the given axis.

Return

a new array containing the reduced values

Since

1.1.1

Parameters

axis

the axis to reduce

operation

the operation