public class QRDecomposition
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
QRDecomposition(Matrix A)
QR Decomposition, computed by Householder reflections.
|
Modifier and Type | Method and Description |
---|---|
Matrix |
getH()
Return the Householder vectors
|
Matrix |
getQ()
Generate and return the (economy-sized) orthogonal factor
|
Matrix |
getR()
Return the upper triangular factor
|
boolean |
isFullRank()
Is the matrix full rank?
|
Matrix |
solve(Matrix B)
Least squares solution of A*X = B
|
public QRDecomposition(Matrix A)
A
- Rectangular matrixpublic boolean isFullRank()
public Matrix getH()
public Matrix getR()
public Matrix getQ()
public Matrix 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 rank deficient.RH, 2017