Package org.ojalgo.matrix.decomposition
Class AbstractDecomposition<N extends java.lang.Comparable<N>>
- java.lang.Object
-
- org.ojalgo.matrix.decomposition.AbstractDecomposition<N>
-
- All Implemented Interfaces:
MatrixDecomposition<N>
,Structure1D
,Structure2D
- Direct Known Subclasses:
GenericDecomposition
,RawDecomposition
abstract class AbstractDecomposition<N extends java.lang.Comparable<N>> extends java.lang.Object implements MatrixDecomposition<N>
-
-
Nested Class Summary
-
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 boolean
myComputed
private java.lang.Boolean
mySolvable
-
Fields inherited from interface org.ojalgo.matrix.decomposition.MatrixDecomposition
TYPICAL
-
-
Constructor Summary
Constructors Constructor Description AbstractDecomposition()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract PhysicalStore<N>
allocate(long numberOfRows, long numberOfColumns)
protected boolean
checkSolvability()
protected boolean
computed(boolean computed)
long
countColumns()
Only need to implement if the structure may contain more than Integer.MAX_VALUE elements.long
countRows()
Only need to implement if the structure may contain more than Integer.MAX_VALUE elements.protected abstract FunctionSet<N>
function()
protected double
getDimensionalEpsilon()
protected boolean
isAspectRatioNormal()
boolean
isComputed()
(package private) boolean
isSolvable()
void
reset()
Delete computed results, and resets attributes to default valuesprotected abstract Scalar.Factory<N>
scalar()
-
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.MatrixDecomposition
decompose, reconstruct
-
Methods inherited from interface org.ojalgo.structure.Structure2D
count, firstInColumn, firstInRow, getColDim, getMaxDim, getMinDim, getRowDim, isEmpty, isFat, isScalar, isSquare, isTall, isVector, limitOfColumn, limitOfRow, size
-
-
-
-
Method Detail
-
countColumns
public final long countColumns()
Description copied from interface:Structure2D
Only need to implement if the structure may contain more than Integer.MAX_VALUE elements.- Specified by:
countColumns
in interfaceStructure2D
- Returns:
- The number of columns
-
countRows
public final long countRows()
Description copied from interface:Structure2D
Only need to implement if the structure may contain more than Integer.MAX_VALUE elements.- Specified by:
countRows
in interfaceStructure2D
- Returns:
- The number of rows
-
isComputed
public final boolean isComputed()
- Specified by:
isComputed
in interfaceMatrixDecomposition<N extends java.lang.Comparable<N>>
- Returns:
- true if decomposition has been attemped and was successful; false if not.
- See Also:
MatrixDecomposition.decompose(Access2D.Collectable)
-
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>>
-
allocate
protected abstract PhysicalStore<N> allocate(long numberOfRows, long numberOfColumns)
-
checkSolvability
protected boolean checkSolvability()
-
computed
protected final boolean computed(boolean computed)
-
function
protected abstract FunctionSet<N> function()
-
getDimensionalEpsilon
protected final double getDimensionalEpsilon()
-
isAspectRatioNormal
protected final boolean isAspectRatioNormal()
-
scalar
protected abstract Scalar.Factory<N> scalar()
-
isSolvable
boolean isSolvable()
-
-