public class MR3 extends Object implements Spectrum
| Modifier and Type | Field and Description |
|---|---|
static double |
DEFAULT_MIN_RELATIVE_GAP
Default value for the minimum relative gap threshold.
|
| Constructor and Description |
|---|
MR3(Vector D,
Vector E)
Creates an instance for computing eigenvalues and eigenvectors of a given symmetric
tridiagonal matrix T.
|
MR3(Vector D,
Vector E,
boolean wantEigenvector)
Creates an instance for computing eigenvalues (and eigenvectors) of a given symmetric
tridiagonal matrix T.
|
MR3(Vector D,
Vector E,
boolean wantEigenvector,
double minRelativeGap)
Creates an instance for computing eigenvalues (and eigenvectors) of a given symmetric
tridiagonal matrix T.
|
| Modifier and Type | Method and Description |
|---|---|
List<Double> |
getEigenvalues()
Gets all the eigenvalues in descending order.
|
Matrix |
getEigenvectorMatrix()
Gets the eigenvector matrix, each column is an eigenvector.
|
List<Vector> |
getEigenvectors()
Gets all the eigenvectors which corresponds to the list of eigenvalues.
|
public static final double DEFAULT_MIN_RELATIVE_GAP
public MR3(Vector D, Vector E)
D - the diagonal entries of TE - the sub-diagonal entries of Tpublic MR3(Vector D, Vector E, boolean wantEigenvector)
D - the diagonal entries of TE - the sub-diagonal entries of TwantEigenvector - true if eigenvectors are requiredpublic MR3(Vector D, Vector E, boolean wantEigenvector, double minRelativeGap)
D - the diagonal entries of TE - the sub-diagonal entries of TwantEigenvector - true if eigenvectors are requiredminRelativeGap - the threshold to determine if two eigenvalues are too closepublic List<Double> getEigenvalues()
getEigenvalues in interface Spectrumpublic List<Vector> getEigenvectors()
public Matrix getEigenvectorMatrix()
Copyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.