Skip to main content

VectorReduce

Trait VectorReduce 

Source
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§

Source

fn horizontal_sum(&self) -> T

Sum of all lanes.

Source

fn horizontal_product(&self) -> T

Product of all lanes.

Source

fn horizontal_min(&self) -> T

Minimum value across all lanes.

Source

fn horizontal_max(&self) -> T

Maximum value across all lanes.

Source

fn horizontal_mean(&self) -> T

Arithmetic mean of all lanes.

Implementors§