Package org.ojalgo.matrix.decomposition
Class RawDecomposition
- java.lang.Object
-
- org.ojalgo.matrix.decomposition.AbstractDecomposition<java.lang.Double>
-
- org.ojalgo.matrix.decomposition.RawDecomposition
-
- All Implemented Interfaces:
MatrixDecomposition<java.lang.Double>
,Structure1D
,Structure2D
- Direct Known Subclasses:
RawCholesky
,RawEigenvalue
,RawLU
,RawQR
,RawSingularValue
abstract class RawDecomposition extends AbstractDecomposition<java.lang.Double>
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 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 int
myColDim
private double[][]
myInternalData
private RawStore
myInternalStore
private int
myRowDim
-
Fields inherited from interface org.ojalgo.matrix.decomposition.MatrixDecomposition
TYPICAL
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
RawDecomposition()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected R064Store
allocate(long numberOfRows, long numberOfColumns)
protected boolean
checkSymmetry()
protected MatrixStore<java.lang.Double>
collect(Access2D.Collectable<java.lang.Double,? super DecompositionStore<java.lang.Double>> source)
protected FunctionSet<java.lang.Double>
function()
int
getColDim()
protected double[][]
getInternalData()
protected RawStore
getInternalStore()
int
getRowDim()
(package private) static RawStore
make(int nbRows, int nbCols)
(package private) static <D extends Access1D<?>>
DiagonalStore.Builder<java.lang.Double,D>makeDiagonal(D mainDiag)
(package private) RawStore
newRawStore(int m, int n)
(package private) double[][]
reset(Structure2D template, boolean transpose)
protected Scalar.Factory<java.lang.Double>
scalar()
(package private) RawStore
wrap(double[][] data)
protected Access2D.Collectable<java.lang.Double,? super PhysicalStore<java.lang.Double>>
wrap(Access2D<?> matrix)
-
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 Detail
-
myColDim
private int myColDim
-
myInternalData
private double[][] myInternalData
-
myInternalStore
private RawStore myInternalStore
-
myRowDim
private int myRowDim
-
-
Method Detail
-
make
static RawStore make(int nbRows, int nbCols)
-
makeDiagonal
static final <D extends Access1D<?>> DiagonalStore.Builder<java.lang.Double,D> makeDiagonal(D mainDiag)
-
getColDim
public int getColDim()
- Returns:
- The number of columns
-
getRowDim
public int getRowDim()
- Returns:
- The number of rows
-
allocate
protected R064Store allocate(long numberOfRows, long numberOfColumns)
- Specified by:
allocate
in classAbstractDecomposition<java.lang.Double>
-
checkSymmetry
protected boolean checkSymmetry()
-
collect
protected MatrixStore<java.lang.Double> collect(Access2D.Collectable<java.lang.Double,? super DecompositionStore<java.lang.Double>> source)
-
function
protected final FunctionSet<java.lang.Double> function()
- Specified by:
function
in classAbstractDecomposition<java.lang.Double>
-
getInternalData
protected double[][] getInternalData()
-
getInternalStore
protected RawStore getInternalStore()
-
scalar
protected final Scalar.Factory<java.lang.Double> scalar()
- Specified by:
scalar
in classAbstractDecomposition<java.lang.Double>
-
wrap
protected Access2D.Collectable<java.lang.Double,? super PhysicalStore<java.lang.Double>> wrap(Access2D<?> matrix)
-
newRawStore
RawStore newRawStore(int m, int n)
-
reset
double[][] reset(Structure2D template, boolean transpose)
-
wrap
RawStore wrap(double[][] data)
-
-