pub struct CostWeights {
pub add_sub: f64,
pub mul: f64,
pub div: f64,
pub pow: f64,
pub exp: f64,
pub log: f64,
pub sqrt: f64,
pub abs: f64,
pub cmp: f64,
pub reduction: f64,
}Expand description
Cost weights for different operation types.
Fields§
§add_sub: f64Cost of addition/subtraction
mul: f64Cost of multiplication
div: f64Cost of division
pow: f64Cost of power operation
exp: f64Cost of exponential
log: f64Cost of logarithm
sqrt: f64Cost of square root
abs: f64Cost of absolute value
cmp: f64Cost of comparison
reduction: f64Cost of reduction (per dimension)
Implementations§
Source§impl CostWeights
impl CostWeights
Sourcepub fn gpu_optimized() -> Self
pub fn gpu_optimized() -> Self
Weights optimized for GPU execution where parallelism matters more.
Sourcepub fn simd_optimized() -> Self
pub fn simd_optimized() -> Self
Weights optimized for SIMD execution.
Trait Implementations§
Source§impl Clone for CostWeights
impl Clone for CostWeights
Source§fn clone(&self) -> CostWeights
fn clone(&self) -> CostWeights
Returns a duplicate of the value. Read more
1.0.0 · 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 CostWeights
impl Debug for CostWeights
Auto Trait Implementations§
impl Freeze for CostWeights
impl RefUnwindSafe for CostWeights
impl Send for CostWeights
impl Sync for CostWeights
impl Unpin for CostWeights
impl UnwindSafe for CostWeights
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