public class QR extends Object implements QRDecomposition
| Constructor and Description |
|---|
QR(Matrix A)
Run the QR decomposition on a matrix.
|
QR(Matrix A,
double epsilon)
Run the QR decomposition on a matrix.
|
| Modifier and Type | Method and Description |
|---|---|
PermutationMatrix |
P()
Get P, the pivoting matrix in the QR decomposition.
|
Matrix |
Q()
Get the orthogonal Q matrix in the QR decomposition, A = QR.
|
UpperTriangularMatrix |
R()
Get the upper triangular matrix R in the QR decomposition, A = QR.
|
int |
rank()
Get the numerical rank of A as computed by the QR decomposition.
|
Matrix |
squareQ()
Get the square Q matrix.
|
Matrix |
tallR()
Get the tall R matrix.
|
public QR(Matrix A, double epsilon)
A - a matrixepsilon - a precision parameter: when a number |x| ≤ ε, it is considered 0public QR(Matrix A)
A - a matrixpublic PermutationMatrix P()
QRDecompositionP in interface QRDecompositionpublic Matrix Q()
QRDecompositionQ in interface QRDecompositionpublic UpperTriangularMatrix R()
QRDecompositionR in interface QRDecompositionpublic int rank()
QRDecompositionrank in interface QRDecompositionpublic Matrix squareQ()
QRDecompositionsquareQ in interface QRDecompositionpublic Matrix tallR()
QRDecompositiontallR in interface QRDecompositionCopyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.