public class SymmTridiagEVD extends Object
| Constructor and Description |
|---|
SymmTridiagEVD(int n)
Sets up an eigenvalue decomposition for symmetrical, tridiagonal
matrices.
|
SymmTridiagEVD(int n,
boolean vectors)
Sets up an eigenvalue decomposition for symmetrical, tridiagonal
matrices.
|
SymmTridiagEVD(int n,
boolean vectors,
double abstol)
Sets up an eigenvalue decomposition for symmetrical, tridiagonal matrices
|
SymmTridiagEVD(int n,
double abstol)
Sets up an eigenvalue decomposition for symmetrical, tridiagonal
matrices.
|
| Modifier and Type | Method and Description |
|---|---|
SymmTridiagEVD |
factor(SymmTridiagMatrix A)
Computes the eigenvalue decomposition of the given matrix
|
static SymmTridiagEVD |
factorize(Matrix A)
Convenience method for computing the full eigenvalue decomposition of the
given matrix
|
double[] |
getEigenvalues()
Gets the eigenvalues (stored in ascending order)
|
DenseMatrix |
getEigenvectors()
Gets the eigenvectors, if available
|
boolean |
hasEigenvectors()
True if the eigenvectors have been computed
|
public SymmTridiagEVD(int n)
n - Size of the matrixpublic SymmTridiagEVD(int n,
double abstol)
n - Size of the matrixabstol - Absolute tolerance criteriapublic SymmTridiagEVD(int n,
boolean vectors)
n - Size of the matrixvectors - True to compute the eigenvectors, false for just the
eigenvaluespublic SymmTridiagEVD(int n,
boolean vectors,
double abstol)
n - Size of the matrixvectors - True to compute the eigenvectors, false for just the
eigenvaluesabstol - Absolute tolerance criteriapublic static SymmTridiagEVD factorize(Matrix A) throws NotConvergedException
A - Matrix to factorize. Main diagonal and superdiagonal is
copied, and the matrix is not modifiedNotConvergedExceptionpublic SymmTridiagEVD factor(SymmTridiagMatrix A) throws NotConvergedException
A - Matrix to factorize. Overwritten on returnNotConvergedExceptionpublic double[] getEigenvalues()
public DenseMatrix getEigenvectors()
public boolean hasEigenvectors()
Copyright © 2015. All Rights Reserved.