pub struct PatternStatistics {
pub nnz: usize,
pub dimensions: (usize, usize),
pub sparsity: f32,
pub max_nnz_per_row: usize,
pub avg_nnz_per_row: f32,
pub std_nnz_per_row: f32,
pub bandwidth: usize,
pub profile: usize,
pub connected_components: usize,
pub clustering_coefficient: f32,
}Expand description
Pattern statistics and characteristics
Fields§
§nnz: usizeNumber of non-zero elements
dimensions: (usize, usize)Matrix dimensions
sparsity: f32Sparsity ratio (fraction of zeros)
max_nnz_per_row: usizeMaximum number of non-zeros per row
avg_nnz_per_row: f32Average number of non-zeros per row
std_nnz_per_row: f32Standard deviation of non-zeros per row
bandwidth: usizeBandwidth (maximum distance from diagonal)
profile: usizeProfile (sum of distances from diagonal)
connected_components: usizeNumber of connected components in graph representation
clustering_coefficient: f32Clustering coefficient
Trait Implementations§
Source§impl Clone for PatternStatistics
impl Clone for PatternStatistics
Source§fn clone(&self) -> PatternStatistics
fn clone(&self) -> PatternStatistics
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 PatternStatistics
impl RefUnwindSafe for PatternStatistics
impl Send for PatternStatistics
impl Sync for PatternStatistics
impl Unpin for PatternStatistics
impl UnsafeUnpin for PatternStatistics
impl UnwindSafe for PatternStatistics
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