pub fn sum_primitive<T>(array: &PrimitiveArray<T>) -> Option<T> where
T: NativeType + Simd + Add<Output = T> + Sum<T>,
T::Simd: Add<Output = T::Simd> + Sum<T>,
Expand description
Returns the sum of values in the array.
Returns None
if the array is empty or only contains null values.