pub trait SimdArrayOps {
// Required methods
fn simd_add(&self, other: &Self) -> Result<Array<f32>>;
fn simd_mul(&self, other: &Self) -> Result<Array<f32>>;
fn simd_sum(&self) -> f32;
fn simd_exp(&self) -> Array<f32>;
fn simd_log(&self) -> Array<f32>;
fn simd_sin_cos(&self) -> (Array<f32>, Array<f32>);
fn simd_matmul(&self, other: &Self) -> Result<Array<f32>>;
fn simd_dot(&self, other: &Self) -> Result<f32>;
fn simd_copy(&self) -> Result<Array<f32>>;
}Expand description
SIMD-optimized extension methods for Array<f32>
These methods provide high-performance SIMD implementations that can be used to accelerate numerical computations on x86_64 and ARM architectures.
Required Methods§
Sourcefn simd_mul(&self, other: &Self) -> Result<Array<f32>>
fn simd_mul(&self, other: &Self) -> Result<Array<f32>>
SIMD-optimized element-wise multiplication
Sourcefn simd_matmul(&self, other: &Self) -> Result<Array<f32>>
fn simd_matmul(&self, other: &Self) -> Result<Array<f32>>
SIMD-optimized matrix multiplication
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".