public class SymmPackEVD
extends java.lang.Object
Constructor and Description |
---|
SymmPackEVD(int n,
boolean upper)
Sets up an eigenvalue decomposition for symmetrical, packed matrices.
|
SymmPackEVD(int n,
boolean upper,
boolean vectors)
Sets up an eigenvalue decomposition for symmetrical, packed matrices
|
Modifier and Type | Method and Description |
---|---|
SymmPackEVD |
factor(LowerSymmPackMatrix A)
Computes the eigenvalue decomposition of the given matrix
|
SymmPackEVD |
factor(UpperSymmPackMatrix A)
Computes the eigenvalue decomposition of the given matrix
|
static SymmPackEVD |
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 SymmPackEVD(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 SymmPackEVD(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 SymmPackEVD factorize(Matrix A) throws NotConvergedException
A
- Matrix to factorize. Upper part extracted, and the matrix is
not modifiedNotConvergedException
public SymmPackEVD factor(LowerSymmPackMatrix A) throws NotConvergedException
A
- Matrix to factorize. Overwritten on returnNotConvergedException
public SymmPackEVD factor(UpperSymmPackMatrix A) throws NotConvergedException
A
- Matrix to factorize. Overwritten on returnNotConvergedException
public double[] getEigenvalues()
public DenseMatrix getEigenvectors()
public boolean hasEigenvectors()