polars_arrow::compute::aggregate

Function sum_slice

Source
pub fn sum_slice<T>(values: &[T]) -> T
where T: NativeType + Simd + Add<Output = T> + Sum<T>, T::Simd: Sum<T> + Add<Output = T::Simd>,
Available on crate feature compute_aggregate only.
Expand description

Compute the sum of a slice