pub struct SparseConfig {
pub sparsity_threshold: f64,
pub enable_fast_mul: bool,
pub max_sparse_terms: usize,
}Expand description
Configuration for sparse operations.
Fields§
§sparsity_threshold: f64Threshold for considering a polynomial sparse (ratio of non-zero to total possible terms).
enable_fast_mul: boolEnable fast multiplication for very sparse polynomials.
max_sparse_terms: usizeMaximum terms before switching to dense representation.
Trait Implementations§
Source§impl Clone for SparseConfig
impl Clone for SparseConfig
Source§fn clone(&self) -> SparseConfig
fn clone(&self) -> SparseConfig
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 SparseConfig
impl Debug for SparseConfig
Auto Trait Implementations§
impl Freeze for SparseConfig
impl RefUnwindSafe for SparseConfig
impl Send for SparseConfig
impl Sync for SparseConfig
impl Unpin for SparseConfig
impl UnsafeUnpin for SparseConfig
impl UnwindSafe for SparseConfig
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