public class SymmDenseEVD extends Object
| Constructor and Description |
|---|
SymmDenseEVD(int n,
boolean upper)
Sets up an eigenvalue decomposition for symmetrical, dense matrices.
|
SymmDenseEVD(int n,
boolean upper,
boolean vectors)
Sets up an eigenvalue decomposition for symmetrical, dense matrices.
|
SymmDenseEVD(int n,
boolean upper,
boolean vectors,
double abstol)
Sets up an eigenvalue decomposition for symmetrical, dense matrices
|
SymmDenseEVD(int n,
boolean upper,
double abstol)
Sets up an eigenvalue decomposition for symmetrical, dense matrices.
|
| Modifier and Type | Method and Description |
|---|---|
SymmDenseEVD |
factor(LowerSymmDenseMatrix A)
Computes the eigenvalue decomposition of the given matrix
|
SymmDenseEVD |
factor(UpperSymmDenseMatrix A)
Computes the eigenvalue decomposition of the given matrix
|
static SymmDenseEVD |
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 SymmDenseEVD(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 SymmDenseEVD(int n,
boolean upper,
double abstol)
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 insteadabstol - Absolute tolerance criteriapublic SymmDenseEVD(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 SymmDenseEVD(int n,
boolean upper,
boolean vectors,
double abstol)
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
eigenvaluesabstol - Absolute tolerance criteriapublic static SymmDenseEVD factorize(Matrix A) throws NotConvergedException
A - Matrix to factorize. Upper part extracted, and the matrix is
not modifiedNotConvergedExceptionpublic SymmDenseEVD factor(LowerSymmDenseMatrix A) throws NotConvergedException
A - Matrix to factorize. Overwritten on returnNotConvergedExceptionpublic SymmDenseEVD factor(UpperSymmDenseMatrix A) throws NotConvergedException
A - Matrix to factorize. Overwritten on returnNotConvergedExceptionpublic double[] getEigenvalues()
public DenseMatrix getEigenvectors()
public boolean hasEigenvectors()
Copyright © 2015. All Rights Reserved.