public class EigenValueDecomposition extends Object implements Serializable
SingularValueDecomposition
of a real matrix is always real, and may
be more useful.
isComplex()
, then D is a normal diagonal matrix.Constructor and Description |
---|
EigenValueDecomposition(Matrix A)
Creates a new new Eigen Value Decomposition.
|
EigenValueDecomposition(Matrix A,
double eps)
Creates a new new Eigen Value Decomposition.
|
Modifier and Type | Method and Description |
---|---|
Matrix |
getD()
Return the block diagonal eigenvalue matrix
|
double[] |
getImagEigenvalues()
Return the imaginary parts of the eigenvalues
|
double[] |
getRealEigenvalues()
Return the real parts of the eigenvalues
|
Matrix |
getV()
Return a copy of the eigenvector matrix
|
Matrix |
getVRaw()
Returns the raw eigenvector matrix.
|
Matrix |
getVT()
Returns a copy of the transposed eigenvector matrix.
|
boolean |
isComplex()
Indicates wether or not the EVD contains complex eigen values.
|
void |
sortByEigenValue(Comparator<Double> cmp)
Sorts the eigen values and the corresponding eigenvector columns by the
associated eigen value.
|
public EigenValueDecomposition(Matrix A)
A
- the square matrix to work on.public EigenValueDecomposition(Matrix A, double eps)
A
- the square matrix to work on.eps
- the numerical tolerance for differences in value to be
considered the same.public void sortByEigenValue(Comparator<Double> cmp)
cmp
- the comparator to use to sort the eigen valuespublic Matrix getV()
public Matrix getVRaw()
public Matrix getVT()
public double[] getRealEigenvalues()
public double[] getImagEigenvalues()
public Matrix getD()
public boolean isComplex()
Copyright © 2017. All rights reserved.