Struct linxal::factorization::lu::LUFactors
[−]
[src]
pub struct LUFactors<T: LU> { /* fields omitted */ }
Representation of the components L, U, P of the factorization of matrix A.
Methods
impl<T: LU> LUFactors<T>
[src]
fn inverse(&self) -> Result<Array<T, Ix2>, LUError>
Returns the inverse of the original matrix, assuming it was square.
fn inverse_into(self) -> Result<Array<T, Ix2>, LUError>
Returns the inverse of the original matrix, assuming it was square.
fn rows(&self) -> usize
Return the number of rows in the original matrix
fn cols(&self) -> usize
Return the number of columns in the original matrix
fn perm(&self) -> &MatrixPermutation
Return a reference to the permutation P
of the
factorization.
fn l(&self) -> Array<T, Ix2>
Return the m
by min(m, n)
matrix L
.
L
will be a lower triangular/trapezoidal matrix, with unit diagonal.
fn u(&self) -> Array<T, Ix2>
Return the first min(m, n)
by n
matrix U of the LU
factorization.
U
will be upper triangular/trapezoidal.
fn reconstruct(&self) -> Array<T, Ix2>
Reconstruct the original matrix A
from the factorization