pub struct SparsityStats {
pub rows: usize,
pub nnz: usize,
pub avg_nnz_per_row: f64,
pub max_nnz_per_row: usize,
pub min_nnz_per_row: usize,
pub std_nnz_per_row: f64,
pub cov_nnz_per_row: f64,
pub max_avg_ratio: f64,
pub block_detected: bool,
pub block_size: usize,
}Expand description
Statistics about the sparsity structure of a CSR matrix.
Fields§
§rows: usizeNumber of rows.
nnz: usizeNumber of non-zeros.
avg_nnz_per_row: f64Average nnz per row.
max_nnz_per_row: usizeMaximum nnz in any row.
min_nnz_per_row: usizeMinimum nnz in any row.
std_nnz_per_row: f64Standard deviation of nnz per row.
cov_nnz_per_row: f64Coefficient of variation (std / avg).
max_avg_ratio: f64Ratio of max nnz to avg nnz.
block_detected: boolWhether block structure was detected.
block_size: usizeDetected block size (if any).
Trait Implementations§
Source§impl Clone for SparsityStats
impl Clone for SparsityStats
Source§fn clone(&self) -> SparsityStats
fn clone(&self) -> SparsityStats
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 moreAuto Trait Implementations§
impl Freeze for SparsityStats
impl RefUnwindSafe for SparsityStats
impl Send for SparsityStats
impl Sync for SparsityStats
impl Unpin for SparsityStats
impl UnsafeUnpin for SparsityStats
impl UnwindSafe for SparsityStats
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