pub struct AdvancedSimdOps { /* private fields */ }Expand description
Advanced SIMD operations manager
Implementations§
Source§impl AdvancedSimdOps
impl AdvancedSimdOps
Sourcepub fn with_config(config: SimdConfig) -> Self
pub fn with_config(config: SimdConfig) -> Self
Create with custom configuration
Sourcepub fn simd_matmul_optimized<T>(
&self,
a: &[T],
b: &[T],
rows_a: usize,
cols_a: usize,
cols_b: usize,
) -> Result<Vec<T>>
pub fn simd_matmul_optimized<T>( &self, a: &[T], b: &[T], rows_a: usize, cols_a: usize, cols_b: usize, ) -> Result<Vec<T>>
High-performance SIMD matrix multiplication with memory alignment
Sourcepub fn simd_fused_multiply_add<T>(
&self,
input: &[T],
weight: &[T],
bias: &[T],
output: &mut [T],
batch_size: usize,
features: usize,
) -> Result<()>
pub fn simd_fused_multiply_add<T>( &self, input: &[T], weight: &[T], bias: &[T], output: &mut [T], batch_size: usize, features: usize, ) -> Result<()>
Fused SIMD operations: multiply-add with broadcasting
Sourcepub fn simd_conv2d<T>(
&self,
input: &[T],
kernel: &[T],
output: &mut [T],
input_height: usize,
input_width: usize,
kernel_height: usize,
kernel_width: usize,
stride: usize,
padding: usize,
) -> Result<()>
pub fn simd_conv2d<T>( &self, input: &[T], kernel: &[T], output: &mut [T], input_height: usize, input_width: usize, kernel_height: usize, kernel_width: usize, stride: usize, padding: usize, ) -> Result<()>
SIMD-optimized convolution operation
Sourcepub fn simd_reduction<T>(
&self,
data: &[T],
reduction_type: ReductionType,
) -> Result<T>
pub fn simd_reduction<T>( &self, data: &[T], reduction_type: ReductionType, ) -> Result<T>
Vectorized reduction with multiple accumulation strategies
Sourcepub fn get_performance_info(&self) -> SimdPerformanceInfo
pub fn get_performance_info(&self) -> SimdPerformanceInfo
Get runtime performance information
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AdvancedSimdOps
impl RefUnwindSafe for AdvancedSimdOps
impl Send for AdvancedSimdOps
impl Sync for AdvancedSimdOps
impl Unpin for AdvancedSimdOps
impl UnsafeUnpin for AdvancedSimdOps
impl UnwindSafe for AdvancedSimdOps
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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