[][src]Struct sprs_ldl::LdlNumeric

pub struct LdlNumeric<N, I> { /* fields omitted */ }

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]

Compute the numeric LDLT decomposition of the given matrix.

Panics

  • if mat is not symmetric

pub fn new_perm(
    mat: CsMatViewI<N, I>,
    perm: PermOwnedI<I>,
    check_symmetry: SymmetryCheck
) -> Result<Self, SprsError> where
    N: Copy + Num + PartialOrd
[src]

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]

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]

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]

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

impl<N, I> Send for LdlNumeric<N, I> where
    I: Send,
    N: Send

impl<N, I> Sync for LdlNumeric<N, I> where
    I: Sync,
    N: Sync

impl<N, I> Unpin for LdlNumeric<N, I> where
    I: Unpin,
    N: Unpin

impl<N, I> UnwindSafe for LdlNumeric<N, I> where
    I: UnwindSafe,
    N: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.