Function sum

Source
pub fn sum(array: &dyn Array) -> VortexResult<Scalar>
Expand description

Sum an array.

If the sum overflows, a null scalar will be returned. If the sum is not supported for the array’s dtype, an error will be raised. If the array is all-invalid, the sum will be zero.