public class Eigen extends java.lang.Object implements Spectrum
eigen.| Modifier and Type | Class and Description |
|---|---|
static class |
Eigen.Method
the methods available to compute eigenvalues and eigenvectors
|
| Constructor and Description |
|---|
Eigen(Matrix A)
Compute the eigenvalues and eigenvectors for a square matrix.
|
Eigen(Matrix A,
Eigen.Method method,
double epsilon)
Compute the eigenvalues and eigenvectors for a square matrix.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Number |
getEigenvalue(int i)
Get the i-th eigenvalue.
|
java.util.List<java.lang.Number> |
getEigenvalues()
Get all the eigenvalues.
|
EigenProperty |
getProperty(int i)
Get the i-th
EigenProperty. |
EigenProperty |
getProperty(java.lang.Number eigenvalue)
Get the
EigenProperty by eigenvalue. |
double[] |
getRealEigenvalues()
Get all real eigenvalues.
|
int |
size()
Get the number of distinct eigenvalues.
|
public Eigen(Matrix A, Eigen.Method method, double epsilon)
A - a square matrixmethod - the eigen decomposition algorithm, c.f., Eigen.Methodepsilon - a precision parameter: when a number |x| ≤ ε, it is considered 0java.lang.IllegalArgumentException - if A is not squarepublic Eigen(Matrix A)
A - a square matrixpublic int size()
public java.util.List<java.lang.Number> getEigenvalues()
SpectrumgetEigenvalues in interface Spectrumpublic double[] getRealEigenvalues()
public java.lang.Number getEigenvalue(int i)
List<Number> convention.i - an index, counting from 0public EigenProperty getProperty(java.lang.Number eigenvalue)
EigenProperty by eigenvalue.
Note that the number passed in must be exactly the same as the eigenvalue in binary representation.
Passing in an approximate number (up to precision) will likely result in an unmatched error,
i.e., null returned.eigenvalue - an eigenvalueEigenProperty of the eigenvaluepublic EigenProperty getProperty(int i)
EigenProperty.
The eigenvalues are sorted in descending order. The index counts from 0 to agree with the List<Number> convention.i - the index, counting from 0EigenProperty