Struct lair::decomposition::lu::Factorized[][src]

pub struct Factorized<A, S> where
    A: Debug,
    S: Data<Elem = A>, 
{ /* fields omitted */ }

LU decomposition factors.

Implementations

impl<A, S> Factorized<A, S> where
    A: Scalar,
    S: Data<Elem = A>, 
[src]

pub fn p(&self) -> Array2<A>[src]

Returns the permutation matrix P of LU decomposition.

pub fn l(&self) -> Array2<A>[src]

Returns L of LU decomposition.

pub fn u(&self) -> Array2<A>[src]

Returns U of LU decomposition.

pub fn is_singular(&self) -> bool[src]

Returns true if the matrix is singular.

pub fn solve<SB>(
    &self,
    b: &ArrayBase<SB, Ix1>
) -> Result<Array1<A>, InvalidInput> where
    SB: Data<Elem = A>, 
[src]

Solves the system of equations P * L * U * x = b for x.

Errors

Returns InvalidInput::Shape if the number of elements in b does not match with the number of rows in L.

impl<A, S> Factorized<A, S> where
    A: Scalar,
    S: DataMut<Elem = A>, 
[src]

pub fn into_pl(self) -> ArrayBase<S, Ix2>[src]

Returns P * L of LU decomposition.

Trait Implementations

impl<A: Debug, S: Debug> Debug for Factorized<A, S> where
    A: Debug,
    S: Data<Elem = A>, 
[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl<A, S> From<ArrayBase<S, Dim<[usize; 2]>>> for Factorized<A, S> where
    A: Scalar,
    A::Real: Real,
    S: DataMut<Elem = A>, 
[src]

fn from(a: ArrayBase<S, Ix2>) -> Self[src]

Converts a matrix into the LU-factorized form, P * L * U.

Auto Trait Implementations

impl<A, S> RefUnwindSafe for Factorized<A, S> where
    A: RefUnwindSafe,
    S: RefUnwindSafe

impl<A, S> Send for Factorized<A, S> where
    S: Send

impl<A, S> Sync for Factorized<A, S> where
    S: Sync

impl<A, S> Unpin for Factorized<A, S> where
    S: Unpin

impl<A, S> UnwindSafe for Factorized<A, S> where
    A: RefUnwindSafe,
    S: UnwindSafe

Blanket Implementations

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.