Struct sprs_suitesparse_ldl::LdlLongSymbolic[][src]

pub struct LdlLongSymbolic { /* fields omitted */ }

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

Implementations

impl LdlLongSymbolic[src]

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

Compute the symbolic LDLT decomposition of the given matrix.

Panics

  • if the matrix is not symmetric

pub fn new_perm<N, I>(
    mat: CsMatViewI<'_, N, I>,
    perm: PermOwnedI<I>,
    check_perm: PermutationCheck
) -> LdlLongSymbolic where
    N: Clone + Into<f64>,
    I: SpIndex
[src]

Compute the symbolic decomposition L D L^T = P A P^T 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
  • if perm does not represent a valid permutation

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

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

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

Panics

If the matrix is not symmetric.

Trait Implementations

impl Clone for LdlLongSymbolic[src]

impl Debug for LdlLongSymbolic[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.