Trait VectorizedComputation

Source
pub trait VectorizedComputation {
    type Input;
    type Output;

    // Required methods
    fn vectorized_compute(&self, input: Self::Input) -> Result<Self::Output>;
    fn optimal_chunk_size(&self) -> usize;
    fn simd_available(&self) -> bool;
}
Expand description

Vectorized computation trait for SIMD operations

Required Associated Types§

Required Methods§

Source

fn vectorized_compute(&self, input: Self::Input) -> Result<Self::Output>

Perform vectorized computation on input data

Source

fn optimal_chunk_size(&self) -> usize

Get optimal chunk size for vectorization

Source

fn simd_available(&self) -> bool

Check if SIMD is available on this platform

Implementors§