public class TridiagonalDecompositionHouseholderOrig_FDRM
extends java.lang.Object
A straight forward implementation from "Fundamentals of Matrix Computations," Second Edition.
This is only saved to provide a point of reference in benchmarks.
Constructor and Description |
---|
TridiagonalDecompositionHouseholderOrig_FDRM() |
Modifier and Type | Method and Description |
---|---|
void |
decompose(org.ejml.data.FMatrixRMaj A)
Decomposes the provided symmetric matrix.
|
float |
getGamma(int index) |
org.ejml.data.FMatrixRMaj |
getQ(org.ejml.data.FMatrixRMaj Q)
An orthogonal matrix that has the following property: T = QTAQ
|
org.ejml.data.FMatrixRMaj |
getQT()
Returns the interal matrix where the decomposed results are stored.
|
org.ejml.data.FMatrixRMaj |
getT(org.ejml.data.FMatrixRMaj T)
Extracts the tridiagonal matrix found in the decomposition.
|
void |
householderSymmetric(int row,
float gamma)
Performs the householder operations on left and right and side of the matrix.
|
void |
init(org.ejml.data.FMatrixRMaj A)
If needed declares and sets up internal data structures.
|
public TridiagonalDecompositionHouseholderOrig_FDRM()
public org.ejml.data.FMatrixRMaj getQT()
public org.ejml.data.FMatrixRMaj getT(org.ejml.data.FMatrixRMaj T)
T
- If not null then the results will be stored here. Otherwise a new matrix will be created.public org.ejml.data.FMatrixRMaj getQ(org.ejml.data.FMatrixRMaj Q)
Q
- If not null then the results will be stored here. Otherwise a new matrix will be created.public void decompose(org.ejml.data.FMatrixRMaj A)
A
- Symmetric matrix that is going to be decomposed. Not modified.public void householderSymmetric(int row, float gamma)
row
- Specifies the submatrix.gamma
- The gamma for the householder operationpublic void init(org.ejml.data.FMatrixRMaj A)
A
- Matrix being decomposed.public float getGamma(int index)