Package org.ojalgo.matrix.decomposition
Class RawDecomposition
java.lang.Object
org.ojalgo.matrix.decomposition.AbstractDecomposition<Double>
org.ojalgo.matrix.decomposition.RawDecomposition
- All Implemented Interfaces:
MatrixDecomposition<Double>
,Structure1D
,Structure2D
- Direct Known Subclasses:
RawCholesky
,RawEigenvalue
,RawLU
,RawQR
,RawSingularValue
In many ways similar to InPlaceDecomposition but this class is hardwired to work with double[][] data. Most
of it's originates from JAMA, but have been significantly refactored or even (re)written from scratch.
-
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 R064Store
allocate
(long numberOfRows, long numberOfColumns) protected boolean
protected MatrixStore
<Double> collect
(Access2D.Collectable<Double, ? super DecompositionStore<Double>> source) protected final FunctionSet
<Double> function()
int
protected double[][]
protected RawStore
int
(package private) static RawStore
make
(int nbRows, int nbCols) (package private) static final <D extends Access1D<?>>
DiagonalStore.Builder<Double, D> makeDiagonal
(D mainDiag) (package private) RawStore
newRawStore
(int m, int n) (package private) double[][]
reset
(Structure2D template, boolean transpose) protected final Scalar.Factory
<Double> scalar()
(package private) RawStore
wrap
(double[][] data) protected Access2D.Collectable
<Double, ? super PhysicalStore<Double>> Methods inherited from class org.ojalgo.matrix.decomposition.AbstractDecomposition
checkSolvability, computed, countColumns, countRows, getDimensionalEpsilon, isAspectRatioNormal, isComputed, isSolvable, reset
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, getMaxDim, getMinDim, isEmpty, isFat, isScalar, isSquare, isTall, isVector, limitOfColumn, limitOfRow, size
-
Field Details
-
myColDim
private int myColDim -
myInternalData
private double[][] myInternalData -
myInternalStore
-
myRowDim
private int myRowDim
-
-
Constructor Details
-
RawDecomposition
protected RawDecomposition()
-
-
Method Details
-
make
-
makeDiagonal
-
getColDim
public int getColDim()- Returns:
- The number of columns
-
getRowDim
public int getRowDim()- Returns:
- The number of rows
-
allocate
- Specified by:
allocate
in classAbstractDecomposition<Double>
-
checkSymmetry
protected boolean checkSymmetry() -
collect
protected MatrixStore<Double> collect(Access2D.Collectable<Double, ? super DecompositionStore<Double>> source) -
function
- Specified by:
function
in classAbstractDecomposition<Double>
-
getInternalData
protected double[][] getInternalData() -
getInternalStore
-
scalar
- Specified by:
scalar
in classAbstractDecomposition<Double>
-
wrap
-
newRawStore
-
reset
-
wrap
-