pub trait VectorReduce<T, const N: usize>: Vector<T, N>where
T: Scalar,{
// Provided 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).
Provided 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.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".