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