pub struct EliminationTree { /* private fields */ }Expand description
Elimination tree of a sparse matrix.
The elimination tree captures the parent-child relationships among columns during Cholesky or LU factorization. It is the foundation for supernodal and multifrontal methods.
Implementations§
Source§impl EliminationTree
impl EliminationTree
Sourcepub fn from_csr(row_offsets: &[usize], col_indices: &[usize], n: usize) -> Self
pub fn from_csr(row_offsets: &[usize], col_indices: &[usize], n: usize) -> Self
Compute the elimination tree from CSR structure (lower triangle).
Uses union-find with path compression for O(n * alpha(n)) complexity.
Sourcepub fn postorder_traversal(&self) -> &[usize]
pub fn postorder_traversal(&self) -> &[usize]
Returns nodes in postorder (leaves before parents).
Sourcepub fn subtree_size(&self, node: usize) -> usize
pub fn subtree_size(&self, node: usize) -> usize
Size of the subtree rooted at node (including the node itself).
Sourcepub fn children_of(&self, node: usize) -> &[usize]
pub fn children_of(&self, node: usize) -> &[usize]
Children of a node.
Trait Implementations§
Source§impl Clone for EliminationTree
impl Clone for EliminationTree
Source§fn clone(&self) -> EliminationTree
fn clone(&self) -> EliminationTree
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 EliminationTree
impl RefUnwindSafe for EliminationTree
impl Send for EliminationTree
impl Sync for EliminationTree
impl Unpin for EliminationTree
impl UnsafeUnpin for EliminationTree
impl UnwindSafe for EliminationTree
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