pub struct DefaultSimdConfig {
pub simd_width: usize,
pub scalar_fallback: bool,
pub precision_tolerance: f64,
}Expand description
Default configuration for SIMD operations
Fields§
§simd_width: usize§scalar_fallback: bool§precision_tolerance: f64Trait Implementations§
Source§impl Clone for DefaultSimdConfig
impl Clone for DefaultSimdConfig
Source§fn clone(&self) -> DefaultSimdConfig
fn clone(&self) -> DefaultSimdConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DefaultSimdConfig
impl Debug for DefaultSimdConfig
Source§impl Default for DefaultSimdConfig
impl Default for DefaultSimdConfig
Source§impl SimdConfig for DefaultSimdConfig
impl SimdConfig for DefaultSimdConfig
Source§fn set_simd_width(&mut self, width: usize)
fn set_simd_width(&mut self, width: usize)
Set the preferred SIMD width
Source§fn simd_width(&self) -> usize
fn simd_width(&self) -> usize
Get the current SIMD width
Source§fn set_scalar_fallback(&mut self, enabled: bool)
fn set_scalar_fallback(&mut self, enabled: bool)
Enable/disable automatic fallback to scalar
Source§fn scalar_fallback_enabled(&self) -> bool
fn scalar_fallback_enabled(&self) -> bool
Check if scalar fallback is enabled
Source§fn set_precision_tolerance(&mut self, tolerance: f64)
fn set_precision_tolerance(&mut self, tolerance: f64)
Set numerical precision requirements
Source§fn precision_tolerance(&self) -> f64
fn precision_tolerance(&self) -> f64
Get current precision tolerance
Auto Trait Implementations§
impl Freeze for DefaultSimdConfig
impl RefUnwindSafe for DefaultSimdConfig
impl Send for DefaultSimdConfig
impl Sync for DefaultSimdConfig
impl Unpin for DefaultSimdConfig
impl UnsafeUnpin for DefaultSimdConfig
impl UnwindSafe for DefaultSimdConfig
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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