|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.ojalgo.matrix.jama.JamaEigenvalue
public abstract class JamaEigenvalue
This class adapts JAMA's EigenvalueDecomposition to ojAlgo's Eigenvalue interface.
| Nested Class Summary | |
|---|---|
static class |
JamaEigenvalue.General
|
static class |
JamaEigenvalue.Nonsymmetric
|
static class |
JamaEigenvalue.Symmetric
|
| Method Summary | |
|---|---|
boolean |
compute(Access2D<?> aStore)
|
boolean |
compute(Access2D<?> aMtrx,
boolean eigenvaluesOnly)
|
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". |
MatrixStore<Double> |
getInverse(DecompositionStore<Double> preallocated)
Makes no use of preallocated at all. |
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)
|
boolean |
isAspectRatioNormal()
|
boolean |
isComputed()
|
boolean |
isFullSize()
|
boolean |
isOrdered()
|
boolean |
isSolvable()
|
boolean |
isSymmetric()
|
MatrixStore<Double> |
reconstruct()
|
void |
reset()
Delete computed results, and resets attributes to default values |
JamaMatrix |
solve(MatrixStore<Double> aRHS)
[A][X]=[B] or [this][return]=[aRHS] |
JamaMatrix |
solve(MatrixStore<Double> aRHS,
DecompositionStore<Double> preallocated)
Makes no use of preallocated at all. |
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, getInverse, solve |
| Method Detail |
|---|
public boolean compute(Access2D<?> aMtrx,
boolean eigenvaluesOnly)
compute in interface Eigenvalue<Double>aMtrx - A matrix to decomposeeigenvaluesOnly - No need to calculate eigenvectors
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 isAspectRatioNormal()
public boolean isComputed()
isComputed in interface MatrixDecomposition<Double>MatrixDecomposition.compute(Access2D),
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 MatrixStore<Double> reconstruct()
reconstruct in interface MatrixDecomposition<Double>public void reset()
MatrixDecomposition
reset in interface MatrixDecomposition<Double>public JamaMatrix solve(MatrixStore<Double> aRHS)
MatrixDecomposition
solve in interface MatrixDecomposition<Double>public String toString()
toString in class Objectpublic final boolean compute(Access2D<?> aStore)
compute in interface MatrixDecomposition<Double>aStore - A matrix to decompose
public final boolean equals(MatrixDecomposition<Double> aDecomp,
NumberContext aCntxt)
equals in interface MatrixDecomposition<Double>public final MatrixStore<Double> getInverse(DecompositionStore<Double> preallocated)
preallocated at all. Simply delegates to getInverse().
getInverse in interface MatrixDecomposition<Double>preallocated - Preallocated memory for the results, possibly some
intermediate results. You must assume this is modified, but you
cannot assume it will contain the full/final/correct solution.
MatrixDecomposition.getInverse(org.ojalgo.matrix.decomposition.DecompositionStore)public final JamaMatrix invert(MatrixStore<Double> aStore)
public final JamaMatrix solve(MatrixStore<Double> aRHS,
DecompositionStore<Double> preallocated)
preallocated at all. Simply delegates to solve(MatrixStore).
solve in interface MatrixDecomposition<Double>aRHS - The Right Hand Side, wont be modfiedpreallocated - Preallocated memory for the results, possibly some
intermediate results. You must assume this is modified, but you
cannot assume it will contain the full/final/correct solution.
MatrixDecomposition.solve(org.ojalgo.matrix.store.MatrixStore, org.ojalgo.matrix.decomposition.DecompositionStore)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||