Class GeneralisedEvD<N extends Comparable<N>>
java.lang.Object
org.ojalgo.matrix.decomposition.AbstractDecomposition<N, DecompositionStore<N>>
org.ojalgo.matrix.decomposition.DenseEigenvalue<N>
org.ojalgo.matrix.decomposition.GeneralisedEvD<N>
- All Implemented Interfaces:
Eigenvalue<N>, Eigenvalue.Generalised<N>, MatrixDecomposition<N>, MatrixDecomposition.Determinant<N>, MatrixDecomposition.Hermitian<N>, MatrixDecomposition.Ordered<N>, MatrixDecomposition.Values<N>, Provider2D, Provider2D.Determinant<N>, Provider2D.Eigenpairs, DeterminantTask<N>, MatrixTask<N>, Structure1D, Structure2D
final class GeneralisedEvD<N extends Comparable<N>>
extends DenseEigenvalue<N>
implements Eigenvalue.Generalised<N>
-
Nested Class Summary
Nested classes/interfaces inherited from interface Eigenvalue
Eigenvalue.Eigenpair, Eigenvalue.Factory<N>, Eigenvalue.Generalisation, Eigenvalue.Generalised<N>, Eigenvalue.Spectral<N>Nested classes/interfaces inherited from interface MatrixDecomposition
MatrixDecomposition.Determinant<N>, MatrixDecomposition.EconomySize<N>, MatrixDecomposition.Factory<D>, MatrixDecomposition.Hermitian<N>, MatrixDecomposition.Ordered<N>, MatrixDecomposition.Pivoting<N>, MatrixDecomposition.RankRevealing<N>, MatrixDecomposition.Solver<N>, MatrixDecomposition.Updatable<N>, MatrixDecomposition.Values<N>Nested classes/interfaces inherited from interface Provider2D
Provider2D.Condition, Provider2D.Determinant<N>, Provider2D.Eigenpairs, Provider2D.Hermitian, Provider2D.Inverse<M>, Provider2D.Rank, Provider2D.Solution<M>, Provider2D.Symmetric, Provider2D.Trace<N>Nested classes/interfaces inherited from interface Structure1D
Structure1D.BasicMapper<T>, Structure1D.IndexMapper<T>, Structure1D.IntIndex, Structure1D.LongIndex, Structure1D.LoopCallbackNested classes/interfaces inherited from interface Structure2D
Structure2D.IntRowColumn, Structure2D.Logical<S,B>, Structure2D.LongRowColumn, Structure2D.ReducibleTo1D<R>, Structure2D.Reshapable, Structure2D.RowColumnKey<R, C>, Structure2D.RowColumnMapper<R, C> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Eigenvalue<N> private final PhysicalStore.Factory<N, ? extends DecompositionStore<N>> private PhysicalStore<N> private PhysicalStore<N> Cprivate final Eigenvalue.GeneralisationFields inherited from interface Eigenvalue
C128, DESCENDING_NORM, H256, Q128, R064, R128Fields inherited from interface MatrixDecomposition
TYPICAL -
Constructor Summary
ConstructorsConstructorDescriptionGeneralisedEvD(PhysicalStore.Factory<N, ? extends DecompositionStore<N>> factory, Cholesky<N> cholesky, Eigenvalue<N> eigenvalue, Eigenvalue.Generalisation type) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleandoDecompose(Access2D.Collectable<N, ? super TransformableRegion<N>> matrix, boolean valuesOnly) A matrix' determinant is the product of its eigenvalues.getEigenpair(int index) getTrace()A matrix' trace is the sum of the diagonal elements.booleanIf [A] is hermitian then [V][D][V]-1 becomes [Q][D][Q]H...booleanThe eigenvalues in D (and the eigenvectors in V) are not necessarily ordered.protected MatrixStore<N> makeD()protected Array1D<ComplexNumber> protected MatrixStore<N> makeV()booleanprepare(Access2D.Collectable<N, ? super TransformableRegion<N>> matrixB) (package private) MatrixStore<N> recover(MatrixStore<N> reduced) (package private) PhysicalStore<N> reduce(Access2D.Collectable<N, ? super PhysicalStore<N>> original) voidreset()Delete computed results, and resets attributes to default valuesMethods inherited from class DenseEigenvalue
calculateDeterminant, computeValuesOnly, decompose, getColDim, getD, getEigenvalues, getMaxDim, getMinDim, getRowDim, getV, isValuesOnly, setD, setEigenvalues, setVMethods inherited from class AbstractDecomposition
aggregator, applyPivotOrder, applyReverseOrder, checkSolvability, collect, computed, copyColumn, copyRow, function, getDimensionalEpsilon, isAspectRatioNormal, isComputed, isSolvable, makeArray, makeDiagonal, makeEye, makeHouseholder, makeIdentity, makeRotation, makeRotation, makeZero, makeZero, scalar, wrapMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface DeterminantTask
calculateDeterminantMethods inherited from interface Eigenvalue
getD, getEigenpairs, getEigenvalues, getEigenvalues, getEigenvectors, getVMethods inherited from interface Eigenvalue.Generalised
computeValuesOnly, decomposeMethods inherited from interface MatrixDecomposition
decompose, isComputedMethods inherited from interface MatrixDecomposition.Determinant
toDeterminantProviderMethods inherited from interface MatrixDecomposition.Hermitian
checkAndDecomposeMethods inherited from interface MatrixDecomposition.Values
computeValuesOnlyMethods inherited from interface Structure2D
count, countColumns, countRows, firstInColumn, firstInRow, getColDim, getMaxDim, getMinDim, getRowDim, isEmpty, isFat, isScalar, isSquare, isTall, isVector, limitOfColumn, limitOfRow, size
-
Field Details
-
myCholesky
-
myEigenvalue
-
myFactory
private final PhysicalStore.Factory<N extends Comparable<N>, ? extends DecompositionStore<N extends Comparable<N>>> myFactory -
myRecovered
-
myReduced
C -
myType
-
-
Constructor Details
-
GeneralisedEvD
GeneralisedEvD(PhysicalStore.Factory<N, ? extends DecompositionStore<N>> factory, Cholesky<N> cholesky, Eigenvalue<N> eigenvalue, Eigenvalue.Generalisation type)
-
-
Method Details
-
getDeterminant
Description copied from interface:MatrixDecomposition.DeterminantA matrix' determinant is the product of its eigenvalues.
- Specified by:
getDeterminantin interfaceMatrixDecomposition.Determinant<N extends Comparable<N>>- Specified by:
getDeterminantin interfaceProvider2D.Determinant<N extends Comparable<N>>- Returns:
- The matrix' determinant
-
getEigenpair
- Specified by:
getEigenpairin interfaceEigenvalue<N extends Comparable<N>>
-
getTrace
Description copied from interface:EigenvalueA matrix' trace is the sum of the diagonal elements. It is also the sum of the eigenvalues. This method should return the sum of the eigenvalues.- Specified by:
getTracein interfaceEigenvalue<N extends Comparable<N>>- Returns:
- The matrix' trace
-
isHermitian
public boolean isHermitian()Description copied from interface:EigenvalueIf [A] is hermitian then [V][D][V]-1 becomes [Q][D][Q]H...- Specified by:
isHermitianin interfaceEigenvalue<N extends Comparable<N>>
-
isOrdered
public boolean isOrdered()Description copied from interface:EigenvalueThe eigenvalues in D (and the eigenvectors in V) are not necessarily ordered. This is a property of the algorithm/implementation, not the data.- Specified by:
isOrderedin interfaceEigenvalue<N extends Comparable<N>>- Specified by:
isOrderedin interfaceMatrixDecomposition.Ordered<N extends Comparable<N>>- Returns:
- true if they are ordered
-
prepare
- Specified by:
preparein interfaceEigenvalue.Generalised<N extends Comparable<N>>
-
reconstruct
- Specified by:
reconstructin interfaceEigenvalue<N extends Comparable<N>>- Specified by:
reconstructin interfaceMatrixDecomposition<N extends Comparable<N>>
-
reset
public void reset()Description copied from interface:MatrixDecompositionDelete computed results, and resets attributes to default values- Specified by:
resetin interfaceMatrixDecomposition<N extends Comparable<N>>- Overrides:
resetin classDenseEigenvalue<N extends Comparable<N>>
-
doDecompose
protected boolean doDecompose(Access2D.Collectable<N, ? super TransformableRegion<N>> matrix, boolean valuesOnly) - Specified by:
doDecomposein classDenseEigenvalue<N extends Comparable<N>>
-
makeD
- Specified by:
makeDin classDenseEigenvalue<N extends Comparable<N>>
-
makeEigenvalues
- Specified by:
makeEigenvaluesin classDenseEigenvalue<N extends Comparable<N>>
-
makeV
- Specified by:
makeVin classDenseEigenvalue<N extends Comparable<N>>
-
recover
-
reduce
-