SimdArrayOps

Trait SimdArrayOps 

Source
pub trait SimdArrayOps<T> {
    // Required methods
    fn simd_dot(&self, other: &Array1<T>) -> Result<T>;
    fn simd_dot_matrix(&self, vector: &Array1<T>) -> Result<Array1<T>>;
    fn simd_add(&self, other: &Array1<T>) -> Result<Array1<T>>;
}
Expand description

Extension trait for SIMD operations on ndarray types

Required Methods§

Source

fn simd_dot(&self, other: &Array1<T>) -> Result<T>

SIMD-accelerated dot product

Source

fn simd_dot_matrix(&self, vector: &Array1<T>) -> Result<Array1<T>>

SIMD-accelerated matrix-vector multiplication

Source

fn simd_add(&self, other: &Array1<T>) -> Result<Array1<T>>

SIMD-accelerated element-wise addition

Implementations on Foreign Types§

Source§

impl SimdArrayOps<f64> for Array1<Float>

Source§

fn simd_dot(&self, other: &Array1<Float>) -> Result<Float>

Source§

fn simd_dot_matrix(&self, _vector: &Array1<Float>) -> Result<Array1<Float>>

Source§

fn simd_add(&self, other: &Array1<Float>) -> Result<Array1<Float>>

Source§

impl SimdArrayOps<f64> for Array2<Float>

Source§

fn simd_dot(&self, _other: &Array1<Float>) -> Result<Float>

Source§

fn simd_dot_matrix(&self, vector: &Array1<Float>) -> Result<Array1<Float>>

Source§

fn simd_add(&self, _other: &Array1<Float>) -> Result<Array1<Float>>

Implementors§