public class EVD extends Object
| Constructor and Description |
|---|
EVD(int n)
Creates an empty eigenvalue decomposition which will compute all the
eigenvalues and eigenvectors (left and right)
|
EVD(int n,
boolean left,
boolean right)
Creates an empty eigenvalue decomposition
|
| Modifier and Type | Method and Description |
|---|---|
EVD |
factor(DenseMatrix A)
Computes the eigenvalue decomposition of the given matrix
|
static EVD |
factorize(Matrix A)
Convenience method for computing the complete eigenvalue decomposition of
the given matrix
|
double[] |
getImaginaryEigenvalues()
Gets the imaginary part of the eigenvalues
|
DenseMatrix |
getLeftEigenvectors()
Gets the left eigenvectors, if available
|
double[] |
getRealEigenvalues()
Gets the real part of the eigenvalues
|
DenseMatrix |
getRightEigenvectors()
Gets the right eigenvectors, if available
|
boolean |
hasLeftEigenvectors()
True if the left eigenvectors have been computed
|
boolean |
hasRightEigenvectors()
True if the right eigenvectors have been computed
|
public EVD(int n)
n - Size of the matrixpublic EVD(int n,
boolean left,
boolean right)
n - Size of the matrixleft - Whether to compute the left eigenvectors or notright - Whether to compute the right eigenvectors or notpublic static EVD factorize(Matrix A) throws NotConvergedException
A - Matrix to factorize. Not modifiedNotConvergedExceptionpublic EVD factor(DenseMatrix A) throws NotConvergedException
A - Matrix to factorize. Overwritten on returnNotConvergedExceptionpublic DenseMatrix getLeftEigenvectors()
public DenseMatrix getRightEigenvectors()
public double[] getRealEigenvalues()
public double[] getImaginaryEigenvalues()
public boolean hasLeftEigenvectors()
public boolean hasRightEigenvectors()
Copyright © 2015. All Rights Reserved.