sum_impl

Function sum_impl 

Source
pub fn sum_impl(
    array: &dyn Array,
    accumulator: &Scalar,
    kernels: &[ArcRef<dyn Kernel>],
) -> 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 the accumulator.