pub struct BoundaryMatrix {
pub matrix: Vec<Vec<u8>>,
pub n_simplices: usize,
}Expand description
Boundary matrix over Z/2Z with column reduction for persistence computation.
Fields§
§matrix: Vec<Vec<u8>>§n_simplices: usizeImplementations§
Source§impl BoundaryMatrix
impl BoundaryMatrix
Sourcepub fn build(vr: &VietorisRipsComplex) -> Result<Self, PersistenceError>
pub fn build(vr: &VietorisRipsComplex) -> Result<Self, PersistenceError>
Build the mod-2 boundary matrix from a Vietoris-Rips complex.
The columns are indexed by simplices (in the same order as vr.simplices),
and rows are indexed by the simplices one dimension lower.
We use a dense representation for clarity: matrix[col][row] ∈ {0, 1}.
For each column (a k-simplex), the rows with value 1 correspond to the
(k−1)-faces of that simplex.
Trait Implementations§
Source§impl Clone for BoundaryMatrix
impl Clone for BoundaryMatrix
Source§fn clone(&self) -> BoundaryMatrix
fn clone(&self) -> BoundaryMatrix
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BoundaryMatrix
impl RefUnwindSafe for BoundaryMatrix
impl Send for BoundaryMatrix
impl Sync for BoundaryMatrix
impl Unpin for BoundaryMatrix
impl UnsafeUnpin for BoundaryMatrix
impl UnwindSafe for BoundaryMatrix
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