public class TridiagonalDecompositionHouseholder_ZDRM
extends java.lang.Object
implements org.ejml.interfaces.decomposition.TridiagonalSimilarDecomposition_F64<org.ejml.data.ZMatrixRMaj>
Performs a complex similar tridiagonal decomposition
on a
square Hermitian matrix. Householder vectors perform the similar operation and the symmetry
is taken advantage of for good performance.
Finds the decomposition of a matrix in the form of:
A = O*T*OH
where A is a Hermitian m by m matrix, O is an orthogonal matrix, and T is a tridiagonal matrix.
This implementation is inspired by description of the real symmetric decomposition in:
David S. Watkins, "Fundamentals of Matrix Computations," Second Edition. Page 349-355
Constructor and Description |
---|
TridiagonalDecompositionHouseholder_ZDRM() |
Modifier and Type | Method and Description |
---|---|
boolean |
decompose(org.ejml.data.ZMatrixRMaj A)
Decomposes the provided symmetric matrix.
|
void |
getDiagonal(double[] diag,
double[] off) |
double[] |
getGammas() |
org.ejml.data.ZMatrixRMaj |
getQ(org.ejml.data.ZMatrixRMaj Q,
boolean transposed)
An orthogonal matrix that has the following property: T = QHAQ
|
org.ejml.data.ZMatrixRMaj |
getQT()
Returns the internal matrix where the decomposed results are stored.
|
org.ejml.data.ZMatrixRMaj |
getT(org.ejml.data.ZMatrixRMaj T)
Extracts the tridiagonal matrix found in the decomposition.
|
void |
householderSymmetric(int row,
double gamma)
Performs the householder operations on left and right and side of the matrix.
|
void |
init(org.ejml.data.ZMatrixRMaj A)
If needed declares and sets up internal data structures.
|
boolean |
inputModified() |
public TridiagonalDecompositionHouseholder_ZDRM()
public org.ejml.data.ZMatrixRMaj getQT()
public void getDiagonal(double[] diag, double[] off)
getDiagonal
in interface org.ejml.interfaces.decomposition.TridiagonalSimilarDecomposition_F64<org.ejml.data.ZMatrixRMaj>
public org.ejml.data.ZMatrixRMaj getT(org.ejml.data.ZMatrixRMaj T)
getT
in interface org.ejml.interfaces.decomposition.TridiagonalSimilarDecomposition<org.ejml.data.ZMatrixRMaj>
T
- If not null then the results will be stored here. Otherwise a new matrix will be created.public org.ejml.data.ZMatrixRMaj getQ(org.ejml.data.ZMatrixRMaj Q, boolean transposed)
getQ
in interface org.ejml.interfaces.decomposition.TridiagonalSimilarDecomposition<org.ejml.data.ZMatrixRMaj>
Q
- If not null then the results will be stored here. Otherwise a new matrix will be created.public boolean decompose(org.ejml.data.ZMatrixRMaj A)
decompose
in interface org.ejml.interfaces.decomposition.DecompositionInterface<org.ejml.data.ZMatrixRMaj>
A
- Symmetric matrix that is going to be decomposed. Not modified.public void householderSymmetric(int row, double gamma)
row
- Specifies the submatrix.gamma
- The gamma for the householder operationpublic void init(org.ejml.data.ZMatrixRMaj A)
A
- Matrix being decomposed.public boolean inputModified()
inputModified
in interface org.ejml.interfaces.decomposition.DecompositionInterface<org.ejml.data.ZMatrixRMaj>
public double[] getGammas()