pub struct TargetOptimizedOps { /* private fields */ }Expand description
Target-specific vector operations dispatcher
Implementations§
Source§impl TargetOptimizedOps
impl TargetOptimizedOps
Sourcepub fn new(config: TargetConfig) -> Self
pub fn new(config: TargetConfig) -> Self
Create a new target-optimized operations instance
Sourcepub fn auto_detect() -> Self
pub fn auto_detect() -> Self
Create with automatic target detection
Sourcepub fn optimal_f32_width(&self) -> usize
pub fn optimal_f32_width(&self) -> usize
Get target-specific SIMD width for f32 operations
Sourcepub fn cache_line_size(&self) -> usize
pub fn cache_line_size(&self) -> usize
Get target-specific cache line size
Sourcepub fn prefetch_distance(&self) -> usize
pub fn prefetch_distance(&self) -> usize
Get target-specific prefetch distance
Trait Implementations§
Source§impl VectorArithmetic<f32> for TargetOptimizedOps
Target-specific vector arithmetic implementation
impl VectorArithmetic<f32> for TargetOptimizedOps
Target-specific vector arithmetic implementation
Source§fn add(&self, a: &[f32], b: &[f32]) -> Result<Vec<f32>, SimdError>
fn add(&self, a: &[f32], b: &[f32]) -> Result<Vec<f32>, SimdError>
Add two vectors element-wise
Source§fn sub(&self, a: &[f32], b: &[f32]) -> Result<Vec<f32>, SimdError>
fn sub(&self, a: &[f32], b: &[f32]) -> Result<Vec<f32>, SimdError>
Subtract two vectors element-wise
Source§fn mul(&self, a: &[f32], b: &[f32]) -> Result<Vec<f32>, SimdError>
fn mul(&self, a: &[f32], b: &[f32]) -> Result<Vec<f32>, SimdError>
Multiply two vectors element-wise
Source§fn div(&self, a: &[f32], b: &[f32]) -> Result<Vec<f32>, SimdError>
fn div(&self, a: &[f32], b: &[f32]) -> Result<Vec<f32>, SimdError>
Divide two vectors element-wise
Source§impl VectorReduction<f32> for TargetOptimizedOps
Target-specific reduction operations
impl VectorReduction<f32> for TargetOptimizedOps
Target-specific reduction operations
Auto Trait Implementations§
impl Freeze for TargetOptimizedOps
impl RefUnwindSafe for TargetOptimizedOps
impl Send for TargetOptimizedOps
impl Sync for TargetOptimizedOps
impl Unpin for TargetOptimizedOps
impl UnsafeUnpin for TargetOptimizedOps
impl UnwindSafe for TargetOptimizedOps
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