public class SymmBandEVD extends Object
Constructor and Description |
---|
SymmBandEVD(int n,
boolean upper)
Sets up an eigenvalue decomposition for symmetrical, banded matrices.
|
SymmBandEVD(int n,
boolean upper,
boolean vectors)
Sets up an eigenvalue decomposition for symmetrical, banded matrices
|
Modifier and Type | Method and Description |
---|---|
SymmBandEVD |
factor(LowerSymmBandMatrix A)
Computes the eigenvalue decomposition of the given matrix
|
SymmBandEVD |
factor(UpperSymmBandMatrix A)
Computes the eigenvalue decomposition of the given matrix
|
static SymmBandEVD |
factorize(Matrix A,
int kd)
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 SymmBandEVD(int n, boolean upper)
n
- Size of the matrixupper
- True if the upper part of the matrix is stored, and false if
the lower part of the matrix is stored insteadpublic SymmBandEVD(int n, boolean upper, boolean vectors)
n
- Size of the matrixupper
- True if the upper part of the matrix is stored, and false if
the lower part of the matrix is stored insteadvectors
- True to compute the eigenvectors, false for just the
eigenvaluespublic static SymmBandEVD factorize(Matrix A, int kd) throws NotConvergedException
A
- Matrix to factorize. The upper triangular part is extracted,
and the matrix is not modifiedkd
- Number of diagonals to extractNotConvergedException
public SymmBandEVD factor(LowerSymmBandMatrix A) throws NotConvergedException
A
- Matrix to factorize. Overwritten on returnNotConvergedException
public SymmBandEVD factor(UpperSymmBandMatrix A) throws NotConvergedException
A
- Matrix to factorize. Overwritten on returnNotConvergedException
public double[] getEigenvalues()
public DenseMatrix getEigenvectors()
public boolean hasEigenvectors()
Copyright © 2013. All Rights Reserved.