pub fn sum_impl(
array: &dyn Array,
sum_dtype: DType,
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 zero.