pub struct SparseMatrixStatistics {
pub format: SparseFormat,
pub rows: usize,
pub cols: usize,
pub nnz: usize,
pub sparsity_ratio: f64,
pub max_row_nnz: usize,
pub min_row_nnz: usize,
pub row_nnz_variance: f64,
pub memory_usage: usize,
}Expand description
Statistics for sparse matrix analysis and optimization
Fields§
§format: SparseFormatMatrix storage format
rows: usizeNumber of rows
cols: usizeNumber of columns
nnz: usizeNumber of non-zero elements
sparsity_ratio: f64Sparsity ratio (0.0 to 1.0)
max_row_nnz: usizeMaximum non-zeros in any row
min_row_nnz: usizeMinimum non-zeros in any row
row_nnz_variance: f64Variance in row non-zero counts
memory_usage: usizeEstimated memory usage in bytes
Implementations§
Source§impl SparseMatrixStatistics
impl SparseMatrixStatistics
Sourcepub fn is_well_balanced(&self) -> bool
pub fn is_well_balanced(&self) -> bool
Check if matrix structure is well-balanced
Sourcepub fn recommended_operations(&self) -> Vec<&'static str>
pub fn recommended_operations(&self) -> Vec<&'static str>
Get recommended operations based on matrix characteristics
Trait Implementations§
Source§impl Clone for SparseMatrixStatistics
impl Clone for SparseMatrixStatistics
Source§fn clone(&self) -> SparseMatrixStatistics
fn clone(&self) -> SparseMatrixStatistics
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 SparseMatrixStatistics
impl RefUnwindSafe for SparseMatrixStatistics
impl Send for SparseMatrixStatistics
impl Sync for SparseMatrixStatistics
impl Unpin for SparseMatrixStatistics
impl UnsafeUnpin for SparseMatrixStatistics
impl UnwindSafe for SparseMatrixStatistics
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more