pub struct SimdF32Ops;Expand description
SIMD-optimized vector operations for f32 slices
Implementations§
Source§impl SimdF32Ops
impl SimdF32Ops
Sourcepub fn dot_product(a: &[f32], b: &[f32]) -> f32
pub fn dot_product(a: &[f32], b: &[f32]) -> f32
Compute dot product of two f32 slices using optimized SIMD processing
Sourcepub fn add_vectors(a: &[f32], b: &[f32], result: &mut [f32])
pub fn add_vectors(a: &[f32], b: &[f32], result: &mut [f32])
Add two f32 vectors using optimized SIMD processing
Sourcepub fn scalar_multiply(vector: &[f32], scalar: f32, result: &mut [f32])
pub fn scalar_multiply(vector: &[f32], scalar: f32, result: &mut [f32])
Multiply f32 vector by scalar using optimized processing
Sourcepub fn norm_squared(vector: &[f32]) -> f32
pub fn norm_squared(vector: &[f32]) -> f32
Compute L2 norm squared using optimized processing
Sourcepub fn exp_approx(input: &[f32], result: &mut [f32])
pub fn exp_approx(input: &[f32], result: &mut [f32])
Apply exponential function element-wise using fast approximation
Auto Trait Implementations§
impl Freeze for SimdF32Ops
impl RefUnwindSafe for SimdF32Ops
impl Send for SimdF32Ops
impl Sync for SimdF32Ops
impl Unpin for SimdF32Ops
impl UnwindSafe for SimdF32Ops
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more