public class HouseholderQR extends Object implements QRDecomposition
| Constructor and Description |
|---|
HouseholderQR(Matrix A)
Runs the Householder reflection process to orthogonalize a matrix.
|
HouseholderQR(Matrix A,
double epsilon)
Runs the Householder reflection process to orthogonalize a matrix.
|
| Modifier and Type | Method and Description |
|---|---|
HouseholderReflection[] |
getHouseholderMatrices()
Gets the householder reflections used in the reflection.
|
PermutationMatrix |
P()
Gets P, the pivoting matrix in the QR decomposition.
|
Matrix |
Q()
Gets the Q matrix in the QR decomposition.
|
UpperTriangularMatrix |
R()
Get the upper triangular matrix R in the QR decomposition, A = QR.
|
int |
rank()
Computes the rank by counting the number of non-zero rows in R.
|
Matrix |
squareQ()
Get the square Q matrix.
|
Matrix |
tallR()
Get the tall R matrix.
|
public HouseholderQR(Matrix A, double epsilon)
A - a matrix, where the number of rows ≥ the number of columnsepsilon - a precision parameter: when a number |x| ≤ ε, it is considered 0IllegalArgumentException - if the number of rows < the number of columnspublic HouseholderQR(Matrix A)
A - a matrix, where the number of rows ≥ the number of columnspublic Matrix Q()
Q in interface QRDecompositionpublic UpperTriangularMatrix R()
QRDecompositionR in interface QRDecompositionpublic PermutationMatrix P()
P in interface QRDecompositionpublic int rank()
rank in interface QRDecompositionpublic Matrix squareQ()
QRDecompositionsquareQ in interface QRDecompositionpublic Matrix tallR()
QRDecompositiontallR in interface QRDecompositionpublic HouseholderReflection[] getHouseholderMatrices()
Copyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.