pub struct SimdMatrixOps { /* private fields */ }Expand description
SIMD-optimized matrix operations
Implementations§
Source§impl SimdMatrixOps
impl SimdMatrixOps
Sourcepub fn with_config(self, config: AccelerationConfig) -> Self
pub fn with_config(self, config: AccelerationConfig) -> Self
Set configuration
Sourcepub fn dot_product_simd(
&self,
a: &Array1<Float>,
b: &Array1<Float>,
) -> Result<Float>
pub fn dot_product_simd( &self, a: &Array1<Float>, b: &Array1<Float>, ) -> Result<Float>
SIMD-optimized vector dot product
Sourcepub fn matrix_vector_mul_simd(
&self,
matrix: &Array2<Float>,
vector: &Array1<Float>,
) -> Result<Array1<Float>>
pub fn matrix_vector_mul_simd( &self, matrix: &Array2<Float>, vector: &Array1<Float>, ) -> Result<Array1<Float>>
SIMD-optimized matrix-vector multiplication
Sourcepub fn elementwise_add_simd(
&self,
a: &Array1<Float>,
b: &Array1<Float>,
) -> Result<Array1<Float>>
pub fn elementwise_add_simd( &self, a: &Array1<Float>, b: &Array1<Float>, ) -> Result<Array1<Float>>
SIMD-optimized element-wise operations
Sourcepub fn elementwise_mul_simd(
&self,
a: &Array1<Float>,
b: &Array1<Float>,
) -> Result<Array1<Float>>
pub fn elementwise_mul_simd( &self, a: &Array1<Float>, b: &Array1<Float>, ) -> Result<Array1<Float>>
SIMD-optimized element-wise multiplication
Sourcepub fn vector_exp_simd(&self, input: &Array1<Float>) -> Array1<Float>
pub fn vector_exp_simd(&self, input: &Array1<Float>) -> Array1<Float>
Vectorized mathematical functions
pub fn vector_sqrt_simd(&self, input: &Array1<Float>) -> Array1<Float>
pub fn vector_sin_simd(&self, input: &Array1<Float>) -> Array1<Float>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SimdMatrixOps
impl RefUnwindSafe for SimdMatrixOps
impl Send for SimdMatrixOps
impl Sync for SimdMatrixOps
impl Unpin for SimdMatrixOps
impl UnwindSafe for SimdMatrixOps
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