Function rulinalg::utils::unrolled_sum
source · [−]pub fn unrolled_sum<T>(xs: &[T]) -> Twhere
T: Clone + Add<Output = T> + Zero,
Expand description
Unrolled sum
Computes the sum over the slice consuming it in the process.
Given graciously by bluss from ndarray!