[−][src]Struct sprs_ldl::LdlNumeric
Structure to hold a numeric LDLT decomposition
Implementations
impl<N, I: SpIndex> LdlNumeric<N, I>
[src]
pub fn new(mat: CsMatViewI<N, I>) -> Result<Self, SprsError> where
N: Copy + Num + PartialOrd,
[src]
N: Copy + Num + PartialOrd,
pub fn new_perm(
mat: CsMatViewI<N, I>,
perm: PermOwnedI<I>,
check_symmetry: SymmetryCheck
) -> Result<Self, SprsError> where
N: Copy + Num + PartialOrd,
[src]
mat: CsMatViewI<N, I>,
perm: PermOwnedI<I>,
check_symmetry: SymmetryCheck
) -> Result<Self, SprsError> where
N: Copy + Num + PartialOrd,
Compute the numeric decomposition L D L^T = P^T A P where P is a permutation matrix.
Using a good permutation matrix can reduce the non-zero count in L, thus making the decomposition and the solves faster.
Panics
- if mat is not symmetric
pub fn update(&mut self, mat: CsMatViewI<N, I>) -> Result<(), SprsError> where
N: Copy + Num + PartialOrd,
[src]
N: Copy + Num + PartialOrd,
Update the decomposition with the given matrix. The matrix must have the same non-zero pattern as the original matrix, otherwise the result is unspecified.
pub fn solve<'a, V>(&self, rhs: &V) -> Vec<N> where
N: 'a + Copy + Num,
V: Deref<Target = [N]>,
[src]
N: 'a + Copy + Num,
V: Deref<Target = [N]>,
Solve the system A x = rhs
pub fn d(&self) -> &[N]
[src]
The diagonal factor D of the LDL^T decomposition
pub fn l(&self) -> CsMatViewI<N, I>
[src]
The L factor of the LDL^T decomposition
pub fn problem_size(&self) -> usize
[src]
The size of the linear system associated with this decomposition
pub fn nnz(&self) -> usize
[src]
The number of non-zero entries in L
Trait Implementations
impl<N: Clone, I: Clone> Clone for LdlNumeric<N, I>
[src]
fn clone(&self) -> LdlNumeric<N, I>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<N: Debug, I: Debug> Debug for LdlNumeric<N, I>
[src]
Auto Trait Implementations
impl<N, I> RefUnwindSafe for LdlNumeric<N, I> where
I: RefUnwindSafe,
N: RefUnwindSafe,
I: RefUnwindSafe,
N: RefUnwindSafe,
impl<N, I> Send for LdlNumeric<N, I> where
I: Send,
N: Send,
I: Send,
N: Send,
impl<N, I> Sync for LdlNumeric<N, I> where
I: Sync,
N: Sync,
I: Sync,
N: Sync,
impl<N, I> Unpin for LdlNumeric<N, I> where
I: Unpin,
N: Unpin,
I: Unpin,
N: Unpin,
impl<N, I> UnwindSafe for LdlNumeric<N, I> where
I: UnwindSafe,
N: UnwindSafe,
I: UnwindSafe,
N: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn is_in_subset(&self) -> bool
unsafe fn to_subset_unchecked(&self) -> SS
fn from_subset(element: &SS) -> SP
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,