pub enum HybPartition {
Auto,
Max,
Threshold(f64),
Fixed(usize),
}Expand description
Strategy for partitioning non-zeros between ELL and COO portions.
Variants§
Auto
Automatic: use the median nnz per row as the ELL width.
Max
Maximum: use the max nnz per row (pure ELL, zero COO overflow).
Threshold(f64)
Percentile threshold: use the given percentile (0.0–1.0) of the per-row nnz distribution as the ELL width. For example, 0.9 means the 90th percentile.
Fixed(usize)
Fixed ELL width chosen by the user.
Trait Implementations§
Source§impl Clone for HybPartition
impl Clone for HybPartition
Source§fn clone(&self) -> HybPartition
fn clone(&self) -> HybPartition
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 moreimpl Copy for HybPartition
Source§impl Debug for HybPartition
impl Debug for HybPartition
Source§impl PartialEq for HybPartition
impl PartialEq for HybPartition
Source§fn eq(&self, other: &HybPartition) -> bool
fn eq(&self, other: &HybPartition) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for HybPartition
Auto Trait Implementations§
impl Freeze for HybPartition
impl RefUnwindSafe for HybPartition
impl Send for HybPartition
impl Sync for HybPartition
impl Unpin for HybPartition
impl UnsafeUnpin for HybPartition
impl UnwindSafe for HybPartition
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