|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Eigenvalue<N extends Number>
Calculates eigenvalues and eigenvectors (for square matrices).
For any square matrix [A] there are matrices [D] and [V] so that [A][V] = [V][D] where [D] contains the eigenvalues on the diagonal (possibly in blocks) and [V] has the eigenvectors as columns.
Note that it is not always possible to calculate [A] = [V][D][V]-1 due to [V] being badly conditioned, or even singular.
If [A] is symmetric then [A] = [V][D][V]T ([I] = [V][V]T).
| Method Summary | |
|---|---|
boolean |
computeNonsymmetric(MatrixStore<N> aNonsymmetric)
|
boolean |
computeSymmetric(MatrixStore<N> aSymmetric)
|
MatrixStore<N> |
getD()
The only requirements on [D] are that it should contain the eigenvalues and that [A][V] = [V][D]. |
ComplexNumber |
getDeterminant()
A matrix' determinant is the product of its eigenvalues. |
Array1D<ComplexNumber> |
getEigenvalues()
Even for real matrices the eigenvalues are potentially complex numbers. |
ComplexNumber |
getTrace()
A matrix' trace is the sum of the diagonal elements. |
MatrixStore<N> |
getV()
The columns of [V] represent the eigenvectors of [A] in the sense that [A][V] = [V][D]. |
boolean |
isOrdered()
|
boolean |
isSymmetric()
|
| Methods inherited from interface org.ojalgo.matrix.decomposition.MatrixDecomposition |
|---|
compute, equals, equals, getInverse, invert, isComputed, isFullSize, isSolvable, reconstruct, reset, solve, solve |
| Method Detail |
|---|
boolean computeNonsymmetric(MatrixStore<N> aNonsymmetric)
aNonsymmetric - A nonsymmetric (assumed to be) matrix to decompose
boolean computeSymmetric(MatrixStore<N> aSymmetric)
aSymmetric - A symmetric (assumed to be) matrix to decompose
MatrixStore<N> getD()
ComplexNumber getDeterminant()
A matrix' determinant is the product of its eigenvalues.
Array1D<ComplexNumber> getEigenvalues()
Even for real matrices the eigenvalues are potentially complex numbers. Typically they need to be expressed as complex numbers when [A] is not symmetric.
The eigenvalues in this array should be ordered in descending order - largest (modulus) first.
ComplexNumber getTrace()
MatrixStore<N> getV()
boolean isOrdered()
boolean isSymmetric()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||