Struct sprs_suitesparse_ldl::LdlLongNumeric[][src]

pub struct LdlLongNumeric { /* fields omitted */ }

Structure holding the numeric ldlt decomposition computed by suitesparse’s ldl

Implementations

impl LdlLongNumeric[src]

pub fn new<N, I>(mat: CsMatViewI<'_, N, I>) -> Result<Self, LinalgError> where
    N: Clone + Into<f64>,
    I: SpIndex
[src]

Compute the numeric LDLT decomposition of the given matrix.

Panics

  • if mat is not symmetric

pub fn new_perm<N, I>(
    mat: CsMatViewI<'_, N, I>,
    perm: PermOwnedI<I>,
    check_perm: PermutationCheck
) -> Result<Self, LinalgError> where
    N: Clone + Into<f64>,
    I: SpIndex
[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<N, I>(
    &mut self,
    mat: CsMatViewI<'_, N, I>
) -> Result<(), LinalgError> where
    N: Clone + Into<f64>,
    I: SpIndex
[src]

Factor a new matrix, assuming it shares the same nonzero pattern as the matrix this factorization was built from.

Panics

If the matrix is not symmetric.

pub fn solve<'a, N, V>(&self, rhs: &V) -> Vec<N> where
    N: 'a + Copy + Num + Into<f64> + From<f64>,
    V: Deref<Target = [N]>, 
[src]

Solve the system A x = rhs

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 Clone for LdlLongNumeric[src]

impl Debug for LdlLongNumeric[src]

Auto Trait Implementations

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<T> Pointable for T

type Init = T

The type for initializers.

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.