|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjmathlib.toolbox.jmathlib.matrix._private.Jama.QRDecomposition
public class QRDecomposition
QR Decomposition.
For an m-by-n matrix A with m >= n, the QR decomposition is an m-by-n orthogonal matrix Q and an n-by-n upper triangular matrix R so that A = Q*R.
The QR decompostion always exists, even if the matrix does not have full rank, so the constructor will never fail. The primary use of the QR decomposition is in the least squares solution of nonsquare systems of simultaneous linear equations. This will fail if isFullRank() returns false.
| Constructor Summary | |
|---|---|
QRDecomposition(double[][] A)
QR Decomposition, computed by Householder reflections. |
|
QRDecomposition(Matrix A)
|
|
| Method Summary | |
|---|---|
double[][] |
getH()
Return the Householder vectors |
double[][] |
getQ()
Generate and return the (economy-sized) orthogonal factor |
double[][] |
getR()
Return the upper triangular factor |
static double |
hypot(double a,
double b)
|
boolean |
isFullRank()
Is the matrix full rank? |
double[][] |
solve(double[][] B)
Least squares solution of A*X = B |
double[][] |
solve(Matrix B)
Solve A*X = B |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public QRDecomposition(Matrix A)
public QRDecomposition(double[][] A)
A - Rectangular matrix| Method Detail |
|---|
public boolean isFullRank()
public double[][] getH()
public double[][] getR()
public double[][] getQ()
public double[][] solve(Matrix B)
B - A Matrix with as many rows as A and any number of columns.
java.lang.IllegalArgumentException - Matrix row dimensions must agree.
java.lang.RuntimeException - Matrix is singular.public double[][] solve(double[][] B)
B - A Matrix with as many rows as A and any number of columns.
java.lang.IllegalArgumentException - Matrix row dimensions must agree.
java.lang.RuntimeException - Matrix is rank deficient.
public static double hypot(double a,
double b)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||