Function sum_array
pub fn sum_array<T, A>(array: A) -> Option<<T as ArrowPrimitiveType>::Native>where
A: ArrayAccessor<Item = <T as ArrowPrimitiveType>::Native>,
T: ArrowNumericType,
<T as ArrowPrimitiveType>::Native: ArrowNativeTypeOp,
Expand description
Returns the sum of values in the array.
This doesn’t detect overflow. Once overflowing, the result will wrap around.
For an overflow-checking variant, use sum_array_checked
instead.