public class HouseholderReflection extends java.lang.Object implements QRDecomposition
| Constructor and Description |
|---|
HouseholderReflection(Matrix A)
Run the Householder reflection process to orthogonalize a matrix.
|
HouseholderReflection(Matrix A,
double epsilon)
Run the Householder reflection process to orthogonalize a matrix.
|
| Modifier and Type | Method and Description |
|---|---|
PermutationMatrix |
P()
Get P, the pivoting matrix in the QR decomposition.
|
Matrix |
Q()
Get the Q matrix in the QR decomposition.
|
UpperTriangularMatrix |
R()
Get the upper triangular matrix R in the QR decomposition, A = QR.
|
int |
rank()
This implementation 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 HouseholderReflection(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 0java.lang.IllegalArgumentException - if the number of rows < the number of columnspublic HouseholderReflection(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 QRDecomposition