pub struct EliminationTreeRef<'a, I: Index> { /* private fields */ }Expand description
reference to a slice containing the cholesky factor’s elimination tree
the elimination tree (or elimination forest, in the general case) is a structure representing the relationship between the columns of the cholesky factor, and the way how earlier columns contribute their sparsity pattern to later columns of the factor
Implementations§
Source§impl<'a, I: Index> EliminationTreeRef<'a, I>
impl<'a, I: Index> EliminationTreeRef<'a, I>
Sourcepub fn into_inner(self) -> &'a [I::Signed]
pub fn into_inner(self) -> &'a [I::Signed]
returns the raw elimination tree
a value can be either nonnegative to represent the index of the parent of a given node,
or -1 to signify that it has no parent
Sourcepub unsafe fn from_inner(inner: &'a [I::Signed]) -> Self
pub unsafe fn from_inner(inner: &'a [I::Signed]) -> Self
creates an elimination tree reference from the underlying array
§safety
the elimination tree must come from an array that was previously filled with
prefactorize_symbolic_cholesky
Trait Implementations§
Source§impl<'a, I: Clone + Index> Clone for EliminationTreeRef<'a, I>
impl<'a, I: Clone + Index> Clone for EliminationTreeRef<'a, I>
Source§fn clone(&self) -> EliminationTreeRef<'a, I>
fn clone(&self) -> EliminationTreeRef<'a, I>
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 moreimpl<'a, I: Copy + Index> Copy for EliminationTreeRef<'a, I>
Auto Trait Implementations§
impl<'a, I> Freeze for EliminationTreeRef<'a, I>
impl<'a, I> RefUnwindSafe for EliminationTreeRef<'a, I>
impl<'a, I> Send for EliminationTreeRef<'a, I>
impl<'a, I> Sync for EliminationTreeRef<'a, I>
impl<'a, I> Unpin for EliminationTreeRef<'a, I>
impl<'a, I> UnwindSafe for EliminationTreeRef<'a, I>
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> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
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