|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.mines.jtk.la.DMatrixQrd
public class DMatrixQrd
QR decomposition of a matrix A. For an m-by-n matrix A, with m>=n, the QR decomposition is A = Q*R, where Q is an m-by-n orthogonal matrix, and R is an n-by-n upper-triangular matrix.
The QR decomposition is constructed even if the matrix A is rank deficient. However, the primary use of the QR decomposition is for least-squares solutions of non-square systems of linear equations, and such solutions are feasible only if the matrix A is of full rank.
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 | |
|---|---|
DMatrixQrd(DMatrix a)
Constructs an QR decomposition for the specified matrix A. |
|
| Method Summary | |
|---|---|
DMatrix |
getQ()
Gets the m-by-n matrix factor Q. |
DMatrix |
getR()
Gets the n-by-n upper triangular matrix factor R. |
boolean |
isFullRank()
Determines whether the matrix A = Q*R is of full rank. |
DMatrix |
solve(DMatrix b)
Returns the least-squares 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 DMatrixQrd(DMatrix a)
a - the matrix A.| Method Detail |
|---|
public boolean isFullRank()
public DMatrix getQ()
public DMatrix getR()
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 rank-deficient.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||