|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ojalgo.matrix.jama.JamaEigenvalue
public final class JamaEigenvalue
This class adapts JAMA's EigenvalueDecomposition to ojAlgo's Eigenvalue interface.
| Constructor Summary | |
|---|---|
JamaEigenvalue()
|
|
| Method Summary | |
|---|---|
boolean |
compute(MatrixStore<Double> aStore)
|
boolean |
computeNonsymmetric(MatrixStore<Double> aNonsymmetricStore)
|
boolean |
computeSymmetric(MatrixStore<Double> aSymmetricStore)
|
boolean |
equals(BasicMatrix aMtrx,
NumberContext aCntxt)
|
boolean |
equals(MatrixDecomposition<Double> aDecomp,
NumberContext aCntxt)
|
boolean |
equals(MatrixStore<Double> aStore,
NumberContext aCntxt)
|
JamaMatrix |
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. |
JamaMatrix |
getInverse()
The output must be a "right inverse" and a "generalised inverse". |
ComplexNumber |
getTrace()
A matrix' trace is the sum of the diagonal elements. |
JamaMatrix |
getV()
The columns of [V] represent the eigenvectors of [A] in the sense that [A][V] = [V][D]. |
JamaMatrix |
invert(MatrixStore<Double> aStore)
A convenience method that produces exactly the same result as if you first call MatrixDecomposition.compute(MatrixStore) and then MatrixDecomposition.getInverse(). |
boolean |
isComputed()
|
boolean |
isFullSize()
|
boolean |
isOrdered()
|
boolean |
isSolvable()
|
boolean |
isSymmetric()
|
void |
reset()
|
JamaMatrix |
solve(MatrixStore<Double> aRHS)
|
Future<DecomposeAndSolve<Double>> |
solve(MatrixStore<Double> aBody,
MatrixStore<Double> aRHS)
Will solve [aBody][X]=[aRHS] concurrently by first calling MatrixDecomposition.compute(MatrixStore) using [aBody], and then MatrixDecomposition.solve(MatrixStore) using [aRHS]. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.ojalgo.matrix.decomposition.MatrixDecomposition |
|---|
compute, equals, invert, solve |
| Constructor Detail |
|---|
public JamaEigenvalue()
| Method Detail |
|---|
public boolean computeNonsymmetric(MatrixStore<Double> aNonsymmetricStore)
computeNonsymmetric in interface Eigenvalue<Double>aNonsymmetricStore - A nonsymmetric (assumed to be) matrix to decompose
public boolean computeSymmetric(MatrixStore<Double> aSymmetricStore)
computeSymmetric in interface Eigenvalue<Double>aSymmetricStore - A symmetric (assumed to be) matrix to decompose
public boolean equals(MatrixStore<Double> aStore,
NumberContext aCntxt)
equals in interface MatrixDecomposition<Double>public JamaMatrix getD()
Eigenvalue
getD in interface Eigenvalue<Double>public ComplexNumber getDeterminant()
EigenvalueA matrix' determinant is the product of its eigenvalues.
getDeterminant in interface Eigenvalue<Double>public Array1D<ComplexNumber> getEigenvalues()
EigenvalueEven 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.
getEigenvalues in interface Eigenvalue<Double>public JamaMatrix getInverse()
MatrixDecomposition
getInverse in interface MatrixDecomposition<Double>BasicMatrix.invert()public ComplexNumber getTrace()
Eigenvalue
getTrace in interface Eigenvalue<Double>public JamaMatrix getV()
Eigenvalue
getV in interface Eigenvalue<Double>public boolean isComputed()
isComputed in interface MatrixDecomposition<Double>MatrixDecomposition.compute(MatrixStore),
MatrixDecomposition.isSolvable()public boolean isFullSize()
isFullSize in interface MatrixDecomposition<Double>public boolean isOrdered()
isOrdered in interface Eigenvalue<Double>public boolean isSolvable()
isSolvable in interface MatrixDecomposition<Double>MatrixDecomposition.solve(MatrixStore),
MatrixDecomposition.isComputed()public boolean isSymmetric()
isSymmetric in interface Eigenvalue<Double>public void reset()
reset in interface MatrixDecomposition<Double>public JamaMatrix solve(MatrixStore<Double> aRHS)
solve in interface MatrixDecomposition<Double>public String toString()
toString in class Objectpublic final boolean compute(MatrixStore<Double> aStore)
compute in interface MatrixDecomposition<Double>aStore - A matrix to decompose
public final boolean equals(BasicMatrix aMtrx,
NumberContext aCntxt)
public boolean equals(MatrixDecomposition<Double> aDecomp,
NumberContext aCntxt)
equals in interface MatrixDecomposition<Double>public final JamaMatrix invert(MatrixStore<Double> aStore)
MatrixDecomposition
invert in interface MatrixDecomposition<Double>
public final Future<DecomposeAndSolve<Double>> solve(MatrixStore<Double> aBody,
MatrixStore<Double> aRHS)
MatrixDecomposition
solve in interface MatrixDecomposition<Double>aBody - The equation system bodyaRHS - The equation system right hand side
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||