pub trait VectorReduce<T, const N: usize>where
T: Scalar,{
// Required methods
fn horizontal_sum(&self) -> T;
fn horizontal_product(&self) -> T;
fn horizontal_min(&self) -> T;
fn horizontal_max(&self) -> T;
fn horizontal_mean(&self) -> T;
}Expand description
Horizontal reduction operations (vector → scalar).
Required Methods§
Sourcefn horizontal_sum(&self) -> T
fn horizontal_sum(&self) -> T
Sum of all lanes.
Sourcefn horizontal_product(&self) -> T
fn horizontal_product(&self) -> T
Product of all lanes.
Sourcefn horizontal_min(&self) -> T
fn horizontal_min(&self) -> T
Minimum value across all lanes.
Sourcefn horizontal_max(&self) -> T
fn horizontal_max(&self) -> T
Maximum value across all lanes.
Sourcefn horizontal_mean(&self) -> T
fn horizontal_mean(&self) -> T
Arithmetic mean of all lanes.