pub struct SimdOps;Expand description
SIMD-like operations for bulk processing
Implementations§
Source§impl SimdOps
impl SimdOps
Sourcepub fn add_f64_array(a: &[f64], b: &[f64], result: &mut [f64])
pub fn add_f64_array(a: &[f64], b: &[f64], result: &mut [f64])
Add arrays of f64 values with loop unrolling
Sourcepub fn mul_f64_array(a: &[f64], b: &[f64], result: &mut [f64])
pub fn mul_f64_array(a: &[f64], b: &[f64], result: &mut [f64])
Multiply arrays of f64 values with loop unrolling
Sourcepub fn add_i32_array(a: &[i32], b: &[i32], result: &mut [i32])
pub fn add_i32_array(a: &[i32], b: &[i32], result: &mut [i32])
Add arrays of i32 values with loop unrolling
Sourcepub fn evaluate_polynomial_simd(coefficients: &[f64], x: f64) -> f64
pub fn evaluate_polynomial_simd(coefficients: &[f64], x: f64) -> f64
Evaluate polynomial using Horner’s method with SIMD-like optimization
Sourcepub fn dot_product_f64(a: &[f64], b: &[f64]) -> f64
pub fn dot_product_f64(a: &[f64], b: &[f64]) -> f64
Dot product with loop unrolling
Auto Trait Implementations§
impl Freeze for SimdOps
impl RefUnwindSafe for SimdOps
impl Send for SimdOps
impl Sync for SimdOps
impl Unpin for SimdOps
impl UnwindSafe for SimdOps
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