|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface LUDecomposition<T extends Matrix64F>
LU Decomposition refactors the original matrix such that:
LU Decomposition is useful since once the decomposition has been performed linear equations can be quickly solved and the original matrix A inverted. Different algorithms can be selected to perform the decomposition, all will have the same end result.
To use this class first specify the size of the matrix that will be decomposed by it in
the constructor. Only square m by m matrices can be decomposed. Then to decompose a matrix
call DecompositionInterface.decompose(T). If it encounters any problems an exception will be thrown. After
that all the other functions will be available for solving and inverting matrices.
| Method Summary | |
|---|---|
double |
computeDeterminant()
Computes the matrix's determinant using the LU decomposition. |
T |
getLower(T lower)
Returns the L matrix from the decomposition. |
T |
getPivot(T pivot)
For numerical stability there are often row interchanges. |
T |
getUpper(T upper)
Returns the U matrix from the decomposition. |
boolean |
isSingular()
Returns true if the decomposition detected a singular matrix. |
| Methods inherited from interface org.ejml.alg.dense.decomposition.DecompositionInterface |
|---|
decompose, inputModified |
| Method Detail |
|---|
T getLower(T lower)
Returns the L matrix from the decomposition. Should only
be called after DecompositionInterface.decompose(org.ejml.data.Matrix64F) has
been called.
If parameter 'lower' is not null, then that matrix is used to store the L matrix. Otherwise a new matrix is created.
lower - If not null then the L matrix is written here. Modified.
T getUpper(T upper)
Returns the U matrix from the decomposition. Should only
be called after DecompositionInterface.decompose(org.ejml.data.Matrix64F) has
been called.
If parameter 'upper' is not null, then that matrix is used to store the U matrix. Otherwise a new matrix is created.
upper - If not null then the U matrix is written here. Modified.
T getPivot(T pivot)
For numerical stability there are often row interchanges. This computes a pivot matrix that will undo those changes.
boolean isSingular()
double computeDeterminant()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||