|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.mines.jtk.lapack.DMatrixLud
public class DMatrixLud
LU decomposition of a matrix A. For an m-by-n matrix A, the LU decomposition is A = P*L*U or A(p,:) = L*U, where P is an m-by-m row permutation matrix, p is a corresponding array of m row permutation indices, L is an m-by-min(m,n) lower triangular or trapezoidal matrix with unit diagonal elements, and U is a min(m,n)-by-n upper triangular or trapezoidal matrix.
The LU decomposition with pivoting never fails, even if the matrix A is singular. However, the primary use of LU decomposition is in the solution of square systems of linear equations, which will fail if A is singular (or not square).
| Constructor Summary | |
|---|---|
DMatrixLud(DMatrix a)
Constructs an LU decomposition of the specified matrix A. |
|
| Method Summary | |
|---|---|
double |
det()
Returns the determinant of the square matrix A. |
DMatrix |
getL()
Gets the lower triangular (or lower trapezoidal) factor L. |
DMatrix |
getP()
Gets the row permutation matrix P. |
int[] |
getPivotIndices()
Gets the array of row permutation (pivot) indices p. |
DMatrix |
getU()
Gets the upper triangular (or upper trapezoidal) factor U. |
boolean |
isSingular()
Determines whether the matrix A is singular. |
DMatrix |
solve(DMatrix b)
Returns the solution X of the linear system A*X = B. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DMatrixLud(DMatrix a)
a - the matrix.| Method Detail |
|---|
public boolean isSingular()
public DMatrix getL()
public DMatrix getU()
public DMatrix getP()
public int[] getPivotIndices()
public double det()
public DMatrix solve(DMatrix b)
b - the right-hand-side matrix B.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||