Package org.ojalgo.matrix.decomposition
Class HessenbergDecomposition<N extends Comparable<N>>
java.lang.Object
org.ojalgo.matrix.decomposition.AbstractDecomposition<N>
org.ojalgo.matrix.decomposition.GenericDecomposition<N>
org.ojalgo.matrix.decomposition.InPlaceDecomposition<N>
org.ojalgo.matrix.decomposition.HessenbergDecomposition<N>
- All Implemented Interfaces:
Hessenberg<N>
,MatrixDecomposition<N>
,Structure1D
,Structure2D
- Direct Known Subclasses:
HessenbergDecomposition.C128
,HessenbergDecomposition.H256
,HessenbergDecomposition.Q128
,HessenbergDecomposition.R064
,HessenbergDecomposition.R128
abstract class HessenbergDecomposition<N extends Comparable<N>>
extends InPlaceDecomposition<N>
implements Hessenberg<N>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static final class
(package private) static final class
(package private) static final class
(package private) static final class
(package private) static final class
Nested classes/interfaces inherited from interface org.ojalgo.matrix.decomposition.Hessenberg
Hessenberg.Factory<N extends Comparable<N>>
Nested classes/interfaces inherited from interface org.ojalgo.matrix.decomposition.MatrixDecomposition
MatrixDecomposition.Determinant<N extends Comparable<N>>, MatrixDecomposition.EconomySize<N extends Comparable<N>>, MatrixDecomposition.Factory<D extends MatrixDecomposition<?>>, MatrixDecomposition.Hermitian<N extends Comparable<N>>, MatrixDecomposition.Ordered<N extends Comparable<N>>, MatrixDecomposition.Pivoting<N extends Comparable<N>>, MatrixDecomposition.RankRevealing<N extends Comparable<N>>, MatrixDecomposition.Solver<N extends Comparable<N>>, MatrixDecomposition.Values<N extends Comparable<N>>
Nested classes/interfaces inherited from interface org.ojalgo.structure.Structure1D
Structure1D.BasicMapper<T>, Structure1D.IndexMapper<T>, Structure1D.IntIndex, Structure1D.LongIndex, Structure1D.LoopCallback
Nested classes/interfaces inherited from interface org.ojalgo.structure.Structure2D
Structure2D.IntRowColumn, Structure2D.Logical<S extends Structure2D,
B extends Structure2D.Logical<S, B>>, Structure2D.LongRowColumn, Structure2D.ReducibleTo1D<R extends Structure1D>, Structure2D.Reshapable, Structure2D.RowColumnKey<R, C>, Structure2D.RowColumnMapper<R, C> -
Field Summary
FieldsFields inherited from interface org.ojalgo.matrix.decomposition.Hessenberg
C128, H256, Q128, R064, R128
Fields inherited from interface org.ojalgo.matrix.decomposition.MatrixDecomposition
TYPICAL
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
HessenbergDecomposition
(PhysicalStore.Factory<N, ? extends DecompositionStore<N>> aFactory) -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
compute
(Access2D.Collectable<N, ? super PhysicalStore<N>> matrix, boolean upper) final boolean
decompose
(Access2D.Collectable<N, ? super PhysicalStore<N>> matrix) (package private) final DecompositionStore
<N> doQ
(DecompositionStore<N> aStoreToTransform) final MatrixStore
<N> getH()
final MatrixStore
<N> getQ()
boolean
isUpper()
private final DecompositionStore
<N> makeQ
(DecompositionStore<N> storeToTransform, boolean upper, boolean eye) void
reset()
Delete computed results, and resets attributes to default valuesMethods inherited from class org.ojalgo.matrix.decomposition.InPlaceDecomposition
getColDim, getInPlace, getInverse, getInverse, getRowDim, setInPlace
Methods inherited from class org.ojalgo.matrix.decomposition.GenericDecomposition
aggregator, allocate, collect, copy, function, makeArray, makeDiagonal, makeEye, makeHouseholder, makeIdentity, makeRotation, makeRotation, makeZero, makeZero, scalar, wrap
Methods inherited from class org.ojalgo.matrix.decomposition.AbstractDecomposition
checkSolvability, computed, countColumns, countRows, getDimensionalEpsilon, isAspectRatioNormal, isComputed, isSolvable
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.ojalgo.matrix.decomposition.Hessenberg
reconstruct
Methods inherited from interface org.ojalgo.matrix.decomposition.MatrixDecomposition
isComputed
Methods inherited from interface org.ojalgo.structure.Structure2D
count, countColumns, countRows, firstInColumn, firstInRow, getColDim, getMaxDim, getMinDim, getRowDim, isEmpty, isFat, isScalar, isSquare, isTall, isVector, limitOfColumn, limitOfRow, size
-
Field Details
-
myQ
-
myUpper
private boolean myUpper
-
-
Constructor Details
-
HessenbergDecomposition
protected HessenbergDecomposition(PhysicalStore.Factory<N, ? extends DecompositionStore<N>> aFactory)
-
-
Method Details
-
compute
public final boolean compute(Access2D.Collectable<N, ? super PhysicalStore<N>> matrix, boolean upper) - Specified by:
compute
in interfaceHessenberg<N extends Comparable<N>>
-
decompose
- Specified by:
decompose
in interfaceMatrixDecomposition<N extends Comparable<N>>
- Parameters:
matrix
- A matrix to decompose- Returns:
- true if decomposition suceeded; false if not
-
getH
- Specified by:
getH
in interfaceHessenberg<N extends Comparable<N>>
-
getQ
- Specified by:
getQ
in interfaceHessenberg<N extends Comparable<N>>
-
isUpper
public boolean isUpper()- Specified by:
isUpper
in interfaceHessenberg<N extends Comparable<N>>
-
reset
public void reset()Description copied from interface:MatrixDecomposition
Delete computed results, and resets attributes to default values- Specified by:
reset
in interfaceMatrixDecomposition<N extends Comparable<N>>
- Overrides:
reset
in classAbstractDecomposition<N extends Comparable<N>>
-
makeQ
private final DecompositionStore<N> makeQ(DecompositionStore<N> storeToTransform, boolean upper, boolean eye) -
doQ
-