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