pub struct SparsityAnalysis {
pub nrows: usize,
pub ncols: usize,
pub nnz: usize,
pub density: f64,
pub max_row_length: usize,
pub min_row_length: usize,
pub avg_row_length: f64,
pub row_length_stddev: f64,
pub num_diagonals: usize,
pub has_block_structure: bool,
pub detected_block_size: Option<(usize, usize)>,
pub recommended_format: RecommendedFormat,
}Expand description
Analysis of a sparse matrix’s sparsity pattern.
Fields§
§nrows: usizeNumber of rows.
ncols: usizeNumber of columns.
nnz: usizeNumber of non-zeros.
density: f64Density (nnz / (nrows * ncols)).
max_row_length: usizeMaximum row length.
min_row_length: usizeMinimum row length.
avg_row_length: f64Average row length.
row_length_stddev: f64Standard deviation of row lengths.
num_diagonals: usizeNumber of distinct diagonals with entries.
has_block_structure: boolTrue if matrix appears to have block structure.
detected_block_size: Option<(usize, usize)>Detected block size (if any).
recommended_format: RecommendedFormatRecommended format for this matrix.
Trait Implementations§
Source§impl Clone for SparsityAnalysis
impl Clone for SparsityAnalysis
Source§fn clone(&self) -> SparsityAnalysis
fn clone(&self) -> SparsityAnalysis
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 moreAuto Trait Implementations§
impl Freeze for SparsityAnalysis
impl RefUnwindSafe for SparsityAnalysis
impl Send for SparsityAnalysis
impl Sync for SparsityAnalysis
impl Unpin for SparsityAnalysis
impl UnwindSafe for SparsityAnalysis
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