Package org.ojalgo.matrix.decomposition
Class AbstractDecomposition<N extends 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 Comparable<N>>
extends Object
implements MatrixDecomposition<N>
-
Nested Class Summary
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.MatrixDecomposition
TYPICAL
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract PhysicalStore
<N> allocate
(long numberOfRows, long numberOfColumns) protected boolean
protected final boolean
computed
(boolean computed) final long
Only need to implement if the structure may contain more than Integer.MAX_VALUE elements.final long
Only need to implement if the structure may contain more than Integer.MAX_VALUE elements.protected abstract FunctionSet
<N> function()
protected final double
protected final boolean
final boolean
(package private) boolean
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
-
Field Details
-
myComputed
private boolean myComputed -
mySolvable
-
-
Constructor Details
-
AbstractDecomposition
AbstractDecomposition()
-
-
Method Details
-
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 Comparable<N>>
- Returns:
- true if decomposition has been attemped and was successful; false if not.
- See Also:
-
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>>
-
allocate
-
checkSolvability
protected boolean checkSolvability() -
computed
protected final boolean computed(boolean computed) -
function
-
getDimensionalEpsilon
protected final double getDimensionalEpsilon() -
isAspectRatioNormal
protected final boolean isAspectRatioNormal() -
scalar
-
isSolvable
boolean isSolvable()
-