|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.mines.jtk.la.DMatrixLud
public class DMatrixLud
LU decomposition (with pivoting) of a matrix A. For an m-by-n matrix A, with m>=n, the LU decomposition is A(piv,:) = L*U, where L is an m-by-n unit lower triangular matrix, U is an n-by-n upper-triangular matrix, and piv is a permutation vector of length m.
The LU decomposition with pivoting always exists, even for singular matrices A. The primary use of LU decomposition is in the solution of square systems of simultaneous linear equations. These solutions will fila if the matrix A is singular.
This class was adapted from the package Jama, which was developed by Joe Hicklin, Cleve Moler, and Peter Webb of The MathWorks, Inc., and by Ronald Boisvert, Bruce Miller, Roldan Pozo, and Karin Remington of the National Institue of Standards and Technology.
| Constructor Summary | |
|---|---|
DMatrixLud(DMatrix a)
Constructs an LU decomposition for the specified matrix A. |
|
| Method Summary | |
|---|---|
double |
det()
Returns the determinant of the matrix A. |
DMatrix |
getL()
Gets the m-by-n unit lower triangular matrix factor L. |
int[] |
getPivot()
Gets the pivot vector, an array of length m. |
DMatrix |
getU()
Gets the n-by-n upper triangular matrix factor U. |
boolean |
isNonSingular()
Determines whether the matrix A is non-singular. |
boolean |
isSingular()
Determines whether the matrix A is singular. |
DMatrix |
solve(DMatrix b)
Returns the solution X of the 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 A.| Method Detail |
|---|
public boolean isNonSingular()
public boolean isSingular()
public DMatrix getL()
public DMatrix getU()
public int[] getPivot()
public DMatrix solve(DMatrix b)
b - a matrix of right-hand-side vectors. This matrix must
have the same number (m) of rows as the matrix A, but may have
any number of columns.
java.lang.IllegalStateException - if A is singular.public double det()
java.lang.IllegalStateException - if A is not square.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||