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()
QRDecomposition
P
in interface QRDecomposition
public Matrix Q()
QRDecomposition
Q
in interface QRDecomposition
public UpperTriangularMatrix R()
QRDecomposition
R
in interface QRDecomposition
public int rank()
QRDecomposition
rank
in interface QRDecomposition
public Matrix squareQ()
QRDecomposition
squareQ
in interface QRDecomposition
public Matrix tallR()
QRDecomposition
tallR
in interface QRDecomposition
Copyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.