Struct lophat::algorithms::SerialAlgorithm
source · pub struct SerialAlgorithm<C: Column> { /* private fields */ }
Expand description
Implements the standard left-to-right column additional algorithm of Edelsbrunner et al.. No optimisations have been implemented.
Trait Implementations§
source§impl<C: Column> DecompositionAlgo<C> for SerialAlgorithm<C>
impl<C: Column> DecompositionAlgo<C> for SerialAlgorithm<C>
§type Options = LoPhatOptions
type Options = LoPhatOptions
A struct of options that you wish to provide to the algorithm.
source§fn init(options: Option<Self::Options>) -> Self
fn init(options: Option<Self::Options>) -> Self
Initialise the algorithm with the options provided and an empty input matrix
source§fn add_cols(self, cols: impl Iterator<Item = C>) -> Self
fn add_cols(self, cols: impl Iterator<Item = C>) -> Self
Push the provided columns onto the end of the matrix
source§fn add_entries(self, entries: impl Iterator<Item = (usize, usize)>) -> Self
fn add_entries(self, entries: impl Iterator<Item = (usize, usize)>) -> Self
Add the provided (row, column) entries to the matrix.
If the column has not already been pushed via
add_cols
then panic!()
§type Decomposition = SerialDecomposition<C>
type Decomposition = SerialDecomposition<C>
Return tupe of
decompose
– should carry sufficient information to query columns of the resulting decomposition.source§fn decompose(self) -> Self::Decomposition
fn decompose(self) -> Self::Decomposition
Decomposes the built-up matrix (D) into an R=DV decomposition, following the relevant algorithm and provided options.
Auto Trait Implementations§
impl<C> RefUnwindSafe for SerialAlgorithm<C>where
C: RefUnwindSafe,
impl<C> Send for SerialAlgorithm<C>
impl<C> Sync for SerialAlgorithm<C>
impl<C> Unpin for SerialAlgorithm<C>where
C: Unpin,
impl<C> UnwindSafe for SerialAlgorithm<C>where
C: UnwindSafe,
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