pub trait SimdConfig {
// Required methods
fn set_simd_width(&mut self, width: usize);
fn simd_width(&self) -> usize;
fn set_scalar_fallback(&mut self, enabled: bool);
fn scalar_fallback_enabled(&self) -> bool;
fn set_precision_tolerance(&mut self, tolerance: f64);
fn precision_tolerance(&self) -> f64;
}Expand description
Configuration trait for SIMD operations
Required Methods§
Sourcefn set_simd_width(&mut self, width: usize)
fn set_simd_width(&mut self, width: usize)
Set the preferred SIMD width
Sourcefn simd_width(&self) -> usize
fn simd_width(&self) -> usize
Get the current SIMD width
Sourcefn set_scalar_fallback(&mut self, enabled: bool)
fn set_scalar_fallback(&mut self, enabled: bool)
Enable/disable automatic fallback to scalar
Sourcefn scalar_fallback_enabled(&self) -> bool
fn scalar_fallback_enabled(&self) -> bool
Check if scalar fallback is enabled
Sourcefn set_precision_tolerance(&mut self, tolerance: f64)
fn set_precision_tolerance(&mut self, tolerance: f64)
Set numerical precision requirements
Sourcefn precision_tolerance(&self) -> f64
fn precision_tolerance(&self) -> f64
Get current precision tolerance
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".