Module ojalgo
Package org.ojalgo.matrix.decomposition
Class AbstractDecomposition<N extends java.lang.Comparable<N>,M extends PhysicalStore<N>>
- java.lang.Object
-
- org.ojalgo.matrix.decomposition.AbstractDecomposition<N,M>
-
- All Implemented Interfaces:
MatrixDecomposition<N>,Structure1D,Structure2D
- Direct Known Subclasses:
DenseEigenvalue,DenseSingularValue,InPlaceDecomposition,RawDecomposition,SparseLU,SparseQDLDL
abstract class AbstractDecomposition<N extends java.lang.Comparable<N>,M extends PhysicalStore<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.Updatable<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 booleanmyComputedprivate PhysicalStore.Factory<N,? extends M>myFactoryprivate java.lang.BooleanmySolvable-
Fields inherited from interface org.ojalgo.matrix.decomposition.MatrixDecomposition
TYPICAL
-
-
Constructor Summary
Constructors Constructor Description AbstractDecomposition(PhysicalStore.Factory<N,? extends M> factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) AggregatorSet<N>aggregator()(package private) voidapplyPivotOrder(Pivot pivot, PhysicalStore<N> matrix)(package private) voidapplyReverseOrder(Pivot pivot, PhysicalStore<N> matrix)protected booleancheckSolvability()(package private) MatrixStore<N>collect(Access2D.Collectable<N,? super M> source)(package private) booleancomputed(boolean computed)(package private) McopyColumn(double[] column)(package private) McopyRow(double[] row)(package private) FunctionSet<N>function()(package private) doublegetDimensionalEpsilon()(package private) booleanisAspectRatioNormal()booleanisComputed()protected booleanisSolvable()(package private) BasicArray<N>makeArray(int length)(package private) <D extends Access1D<?>>
DiagonalStore.Builder<N,D>makeDiagonal(D mainDiag)(package private) MmakeEye(int numberOfRows, int numberOfColumns)(package private) Householder<N>makeHouseholder(int dimension)(package private) MatrixStore<N>makeIdentity(int dimension)(package private) Rotation<N>makeRotation(int low, int high, double cos, double sin)(package private) Rotation<N>makeRotation(int low, int high, N cos, N sin)(package private) MmakeZero(int nbRows, int nbCols)(package private) MmakeZero(Structure2D shape)voidreset()Delete computed results, and resets attributes to default values(package private) Scalar.Factory<N>scalar()(package private) MatrixStore<N>wrap(Access2D<?> source)-
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, countColumns, countRows, firstInColumn, firstInRow, getColDim, getMaxDim, getMinDim, getRowDim, isEmpty, isFat, isScalar, isSquare, isTall, isVector, limitOfColumn, limitOfRow, size
-
-
-
-
Field Detail
-
myComputed
private boolean myComputed
-
myFactory
private final PhysicalStore.Factory<N extends java.lang.Comparable<N>,? extends M extends PhysicalStore<N>> myFactory
-
mySolvable
private java.lang.Boolean mySolvable
-
-
Constructor Detail
-
AbstractDecomposition
AbstractDecomposition(PhysicalStore.Factory<N,? extends M> factory)
-
-
Method Detail
-
isComputed
public final boolean isComputed()
- Specified by:
isComputedin 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:MatrixDecompositionDelete computed results, and resets attributes to default values- Specified by:
resetin interfaceMatrixDecomposition<N extends java.lang.Comparable<N>>
-
checkSolvability
protected boolean checkSolvability()
-
isSolvable
protected boolean isSolvable()
-
aggregator
final AggregatorSet<N> aggregator()
-
applyPivotOrder
final void applyPivotOrder(Pivot pivot, PhysicalStore<N> matrix)
-
applyReverseOrder
final void applyReverseOrder(Pivot pivot, PhysicalStore<N> matrix)
-
collect
final MatrixStore<N> collect(Access2D.Collectable<N,? super M> source)
-
computed
final boolean computed(boolean computed)
-
copyColumn
final M copyColumn(double[] column)
-
copyRow
final M copyRow(double[] row)
-
function
final FunctionSet<N> function()
-
getDimensionalEpsilon
final double getDimensionalEpsilon()
-
isAspectRatioNormal
final boolean isAspectRatioNormal()
-
makeArray
final BasicArray<N> makeArray(int length)
-
makeDiagonal
final <D extends Access1D<?>> DiagonalStore.Builder<N,D> makeDiagonal(D mainDiag)
-
makeEye
final M makeEye(int numberOfRows, int numberOfColumns)
-
makeHouseholder
final Householder<N> makeHouseholder(int dimension)
-
makeIdentity
final MatrixStore<N> makeIdentity(int dimension)
-
makeZero
final M makeZero(int nbRows, int nbCols)
-
makeZero
final M makeZero(Structure2D shape)
-
scalar
final Scalar.Factory<N> scalar()
-
wrap
final MatrixStore<N> wrap(Access2D<?> source)
-
-