pub struct SimdMatrixOps { /* private fields */ }Expand description
SIMD-accelerated matrix operations for discriminant analysis
Implementations§
Source§impl SimdMatrixOps
impl SimdMatrixOps
Sourcepub fn with_config(config: SimdConfig) -> Self
pub fn with_config(config: SimdConfig) -> Self
Create with custom configuration
Sourcepub fn simd_matvec(
&self,
matrix: &Array2<Float>,
vector: &Array1<Float>,
) -> Result<Array1<Float>>
pub fn simd_matvec( &self, matrix: &Array2<Float>, vector: &Array1<Float>, ) -> Result<Array1<Float>>
SIMD-accelerated matrix-vector multiplication
Sourcepub fn simd_dot_product(
&self,
a: &ArrayView1<'_, Float>,
b: ArrayView1<'_, Float>,
) -> Result<Float>
pub fn simd_dot_product( &self, a: &ArrayView1<'_, Float>, b: ArrayView1<'_, Float>, ) -> Result<Float>
SIMD-accelerated dot product
Sourcepub fn simd_matmul(
&self,
a: &Array2<Float>,
b: &Array2<Float>,
) -> Result<Array2<Float>>
pub fn simd_matmul( &self, a: &Array2<Float>, b: &Array2<Float>, ) -> Result<Array2<Float>>
SIMD-accelerated matrix multiplication
Sourcepub fn simd_element_wise_add(
&self,
a: &Array1<Float>,
b: &Array1<Float>,
) -> Result<Array1<Float>>
pub fn simd_element_wise_add( &self, a: &Array1<Float>, b: &Array1<Float>, ) -> Result<Array1<Float>>
SIMD-accelerated element-wise operations
Sourcepub fn simd_element_wise_subtract(
&self,
a: &Array1<Float>,
b: &Array1<Float>,
) -> Result<Array1<Float>>
pub fn simd_element_wise_subtract( &self, a: &Array1<Float>, b: &Array1<Float>, ) -> Result<Array1<Float>>
SIMD-accelerated element-wise subtraction
Sourcepub fn simd_element_wise_multiply(
&self,
a: &Array1<Float>,
b: &Array1<Float>,
) -> Result<Array1<Float>>
pub fn simd_element_wise_multiply( &self, a: &Array1<Float>, b: &Array1<Float>, ) -> Result<Array1<Float>>
SIMD-accelerated element-wise multiplication
Sourcepub fn simd_covariance(&self, data: &Array2<Float>) -> Result<Array2<Float>>
pub fn simd_covariance(&self, data: &Array2<Float>) -> Result<Array2<Float>>
SIMD-accelerated covariance matrix computation
Sourcepub fn simd_mahalanobis_distance(
&self,
x: &Array1<Float>,
mean: &Array1<Float>,
inv_cov: &Array2<Float>,
) -> Result<Float>
pub fn simd_mahalanobis_distance( &self, x: &Array1<Float>, mean: &Array1<Float>, inv_cov: &Array2<Float>, ) -> Result<Float>
SIMD-accelerated distance computations for discriminant analysis
Sourcepub fn check_simd_support(&self) -> SimdSupport
pub fn check_simd_support(&self) -> SimdSupport
Check if current CPU supports required SIMD features
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