#[non_exhaustive]pub struct MatrixStats {
pub n: usize,
pub nnz: usize,
pub min_diag: f64,
pub max_diag: f64,
pub min_dd_margin: f64,
pub m_matrix_sign: bool,
pub frobenius_norm: f64,
}Expand description
Common stats over a sparse matrix used by the TUI and meta.json.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.n: usize§nnz: usize§min_diag: f64§max_diag: f64§min_dd_margin: f64Smallest D_ii - sum_j |O_ij| across all rows. Negative means
the matrix is not diagonally dominant.
m_matrix_sign: boolWhether all off-diagonals are ≤ 0 (M-matrix sign pattern).
frobenius_norm: f64Implementations§
Trait Implementations§
Source§impl Clone for MatrixStats
impl Clone for MatrixStats
Source§fn clone(&self) -> MatrixStats
fn clone(&self) -> MatrixStats
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 moreSource§impl Debug for MatrixStats
impl Debug for MatrixStats
Source§impl<'de> Deserialize<'de> for MatrixStats
impl<'de> Deserialize<'de> for MatrixStats
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for MatrixStats
impl RefUnwindSafe for MatrixStats
impl Send for MatrixStats
impl Sync for MatrixStats
impl Unpin for MatrixStats
impl UnsafeUnpin for MatrixStats
impl UnwindSafe for MatrixStats
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