[][src]Struct mathru::algebra::linear::matrix::LUDec

pub struct LUDec<T> { /* fields omitted */ }

Implementations

impl<T> LUDec<T>[src]

pub fn l(self) -> Matrix<T>[src]

Return l Matrix of LU decomposition

pub fn u(self) -> Matrix<T>[src]

pub fn p(self) -> Matrix<T>[src]

pub fn lup(self) -> (Matrix<T>, Matrix<T>, Matrix<T>)[src]

Return l, u, and p matrix of the LU decomposition

Trait Implementations

impl<T: Clone> Clone for LUDec<T>[src]

impl<T: Debug> Debug for LUDec<T>[src]

impl<'de, T> Deserialize<'de> for LUDec<T> where
    T: Deserialize<'de>, 
[src]

impl<T> Inverse<T> for LUDec<T> where
    T: Field + Scalar
[src]

fn inv(&self) -> Result<Matrix<T>, ()>[src]

Inverse Matrix

PAX = LUX = I X = (PA)^-1 X = A^-1P^-1 XP = A^-1

Example

use mathru::algebra::linear::{matrix::Inverse, Matrix};

let a: Matrix<f64> = Matrix::new(2, 2, vec![1.0, 0.0, 3.0, -7.0]);
let b_inv: Matrix<f64> = a.inv().unwrap();

impl<T> Serialize for LUDec<T> where
    T: Serialize
[src]

impl<T> Solve<Matrix<T>> for LUDec<T> where
    T: Field + Scalar
[src]

impl<T> Solve<Vector<T>> for LUDec<T> where
    T: Field + Scalar
[src]

fn solve(&self, rhs: &Vector<T>) -> Result<Vector<T>, ()>[src]

Solves Ax = y where A \in R^{m * n}, x \in R^n, y \in R^m

Auto Trait Implementations

impl<T> RefUnwindSafe for LUDec<T> where
    T: RefUnwindSafe

impl<T> Send for LUDec<T> where
    T: Send

impl<T> Sync for LUDec<T> where
    T: Sync

impl<T> Unpin for LUDec<T> where
    T: Unpin

impl<T> UnwindSafe for LUDec<T> where
    T: 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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,