[][src]Function rulinalg::utils::unrolled_sum

pub fn unrolled_sum<T>(xs: &[T]) -> T where
    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!