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

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!