pub trait Sum<T> {
    fn simd_sum(self) -> T;
}
Available on crate feature compute_aggregate only.
Expand description

Object that can reduce itself to a number. This is used in the context of SIMD to reduce a MD (e.g. [f32; 16]) into a single number (f32).

Required Methods

Reduces this element to a single value.

Implementors