pub struct SimplexBoundaryMatrix {
pub rows: usize,
pub cols: usize,
pub entries: Vec<(usize, usize, i64)>,
}Expand description
A sparse integer matrix represented as a list of (row, col, value) triples.
Fields§
§rows: usizeNumber of rows.
cols: usizeNumber of cols.
entries: Vec<(usize, usize, i64)>Nonzero entries (row, col, value).
Implementations§
Source§impl SimplexBoundaryMatrix
impl SimplexBoundaryMatrix
Sourcepub fn smith_normal_form_diagonal(&self) -> Vec<i64>
pub fn smith_normal_form_diagonal(&self) -> Vec<i64>
Compute the Smith Normal Form diagonal entries.
Returns the nonzero diagonal invariant factors.
Sourcepub fn torsion_coefficients(&self) -> Vec<i64>
pub fn torsion_coefficients(&self) -> Vec<i64>
Compute the torsion coefficients (diagonal entries > 1).
Trait Implementations§
Source§impl Clone for SimplexBoundaryMatrix
impl Clone for SimplexBoundaryMatrix
Source§fn clone(&self) -> SimplexBoundaryMatrix
fn clone(&self) -> SimplexBoundaryMatrix
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 SimplexBoundaryMatrix
impl Debug for SimplexBoundaryMatrix
Source§impl Default for SimplexBoundaryMatrix
impl Default for SimplexBoundaryMatrix
Source§fn default() -> SimplexBoundaryMatrix
fn default() -> SimplexBoundaryMatrix
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SimplexBoundaryMatrix
impl RefUnwindSafe for SimplexBoundaryMatrix
impl Send for SimplexBoundaryMatrix
impl Sync for SimplexBoundaryMatrix
impl Unpin for SimplexBoundaryMatrix
impl UnsafeUnpin for SimplexBoundaryMatrix
impl UnwindSafe for SimplexBoundaryMatrix
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