Package org.ojalgo.matrix.decomposition
Class HessenbergDecomposition<N extends java.lang.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 java.lang.Comparable<N>> extends InPlaceDecomposition<N> implements Hessenberg<N>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
HessenbergDecomposition.C128
(package private) static class
HessenbergDecomposition.H256
(package private) static class
HessenbergDecomposition.Q128
(package private) static class
HessenbergDecomposition.R064
(package private) static class
HessenbergDecomposition.R128
-
Nested classes/interfaces inherited from interface org.ojalgo.matrix.decomposition.Hessenberg
Hessenberg.Factory<N extends java.lang.Comparable<N>>
-
Nested classes/interfaces inherited from interface org.ojalgo.matrix.decomposition.MatrixDecomposition
MatrixDecomposition.Determinant<N extends java.lang.Comparable<N>>, MatrixDecomposition.EconomySize<N extends java.lang.Comparable<N>>, MatrixDecomposition.Factory<D extends MatrixDecomposition<?>>, MatrixDecomposition.Hermitian<N extends java.lang.Comparable<N>>, MatrixDecomposition.Ordered<N extends java.lang.Comparable<N>>, MatrixDecomposition.Pivoting<N extends java.lang.Comparable<N>>, MatrixDecomposition.RankRevealing<N extends java.lang.Comparable<N>>, MatrixDecomposition.Solver<N extends java.lang.Comparable<N>>, MatrixDecomposition.Values<N extends java.lang.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
Fields Modifier and Type Field Description private DecompositionStore<N>
myQ
private boolean
myUpper
-
Fields 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
Constructors Modifier Constructor Description protected
HessenbergDecomposition(PhysicalStore.Factory<N,? extends DecompositionStore<N>> aFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
compute(Access2D.Collectable<N,? super PhysicalStore<N>> matrix, boolean upper)
boolean
decompose(Access2D.Collectable<N,? super PhysicalStore<N>> matrix)
(package private) DecompositionStore<N>
doQ(DecompositionStore<N> aStoreToTransform)
MatrixStore<N>
getH()
MatrixStore<N>
getQ()
boolean
isUpper()
private DecompositionStore<N>
makeQ(DecompositionStore<N> storeToTransform, boolean upper, boolean eye)
void
reset()
Delete computed results, and resets attributes to default values-
Methods 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 Detail
-
myQ
private transient DecompositionStore<N extends java.lang.Comparable<N>> myQ
-
myUpper
private boolean myUpper
-
-
Constructor Detail
-
HessenbergDecomposition
protected HessenbergDecomposition(PhysicalStore.Factory<N,? extends DecompositionStore<N>> aFactory)
-
-
Method Detail
-
compute
public final boolean compute(Access2D.Collectable<N,? super PhysicalStore<N>> matrix, boolean upper)
- Specified by:
compute
in interfaceHessenberg<N extends java.lang.Comparable<N>>
-
decompose
public final boolean decompose(Access2D.Collectable<N,? super PhysicalStore<N>> matrix)
- Specified by:
decompose
in interfaceMatrixDecomposition<N extends java.lang.Comparable<N>>
- Parameters:
matrix
- A matrix to decompose- Returns:
- true if decomposition suceeded; false if not
-
getH
public final MatrixStore<N> getH()
- Specified by:
getH
in interfaceHessenberg<N extends java.lang.Comparable<N>>
-
getQ
public final MatrixStore<N> getQ()
- Specified by:
getQ
in interfaceHessenberg<N extends java.lang.Comparable<N>>
-
isUpper
public boolean isUpper()
- Specified by:
isUpper
in interfaceHessenberg<N extends java.lang.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 java.lang.Comparable<N>>
- Overrides:
reset
in classAbstractDecomposition<N extends java.lang.Comparable<N>>
-
makeQ
private final DecompositionStore<N> makeQ(DecompositionStore<N> storeToTransform, boolean upper, boolean eye)
-
doQ
final DecompositionStore<N> doQ(DecompositionStore<N> aStoreToTransform)
-
-