pub trait Sum<T> {
fn simd_sum(self) -> T;
}
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
).
pub trait Sum<T> {
fn simd_sum(self) -> T;
}
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
).