Trait simd_iter::SimdNumIterExt
source · pub trait SimdNumIterExt {
type Scalar;
fn scalar_sum(self) -> Self::Scalar;
fn scalar_product(self) -> Self::Scalar;
}Expand description
An extension trait for Iterators over SimdNums.
Required Associated Types§
Required Methods§
sourcefn scalar_sum(self) -> Self::Scalar
fn scalar_sum(self) -> Self::Scalar
Returns the sum of all the scalars in the iterator.
sourcefn scalar_product(self) -> Self::Scalar
fn scalar_product(self) -> Self::Scalar
Returns the product of all the scalars in the iterator.