public class Eigen extends Object implements Spectrum
eigen.| Modifier and Type | Class and Description |
|---|---|
static class |
Eigen.Method
the available methods to compute eigenvalues and eigenvectors
|
| Constructor and Description |
|---|
Eigen(Matrix A)
Compute the eigenvalues and eigenvectors for a square matrix.
|
Eigen(Matrix A,
double epsilon)
Use
Eigen.Method.QR method by default. |
Eigen(Matrix A,
Eigen.Method method)
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 |
|---|---|
Number |
getEigenvalue(int i)
Get the i-th eigenvalue.
|
List<Number> |
getEigenvalues()
Get all the eigenvalues.
|
EigenProperty |
getProperty(int i)
Get the i-th
EigenProperty. |
EigenProperty |
getProperty(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)
A - a square matrixpublic Eigen(Matrix A, Eigen.Method method)
A - a square matrixmethod - the eigen decomposition algorithm, c.f., Eigen.Methodpublic Eigen(Matrix A, double epsilon)
Eigen.Method.QR method by default.A - a square matrixepsilon - a precision parameter: when a number |x| ≤ ε, it is considered 0Eigen(dev.nm.algebra.linear.matrix.doubles.Matrix, double)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 0IllegalArgumentException - if A is not squarepublic int size()
public List<Number> getEigenvalues()
SpectrumgetEigenvalues in interface Spectrumpublic double[] getRealEigenvalues()
public Number getEigenvalue(int i)
List<Number> convention.i - an index, counting from 0public EigenProperty getProperty(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 0EigenPropertyCopyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.