Package org.ojalgo.optimisation.linear
Class ProductFormInverse.ElementaryFactor
- java.lang.Object
-
- org.ojalgo.optimisation.linear.ProductFormInverse.ElementaryFactor
-
- All Implemented Interfaces:
InvertibleFactor<java.lang.Double>
,Structure1D
,Structure2D
- Enclosing class:
- ProductFormInverse
static final class ProductFormInverse.ElementaryFactor extends java.lang.Object implements InvertibleFactor<java.lang.Double>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ojalgo.matrix.transformation.InvertibleFactor
InvertibleFactor.IdentityFactor<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 SparseArray<java.lang.Double>
myColumn
private int
myIndex
private double
myNegatedDiagonal
-
Constructor Summary
Constructors Constructor Description ElementaryFactor(SparseArray<java.lang.Double> column, int index, double diagonalElement)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
btran(PhysicalStore<java.lang.Double> arg)
Backwards-transformationvoid
ftran(PhysicalStore<java.lang.Double> arg)
Forward-transformationint
getColDim()
(package private) SparseArray<java.lang.Double>
getColumn()
int
getRowDim()
-
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.transformation.InvertibleFactor
btran, ftran
-
Methods inherited from interface org.ojalgo.structure.Structure2D
count, countColumns, countRows, firstInColumn, firstInRow, getMaxDim, getMinDim, isEmpty, isFat, isScalar, isSquare, isTall, isVector, limitOfColumn, limitOfRow, size
-
-
-
-
Field Detail
-
myColumn
private final SparseArray<java.lang.Double> myColumn
-
myIndex
private final int myIndex
-
myNegatedDiagonal
private final double myNegatedDiagonal
-
-
Constructor Detail
-
ElementaryFactor
ElementaryFactor(SparseArray<java.lang.Double> column, int index, double diagonalElement)
-
-
Method Detail
-
btran
public void btran(PhysicalStore<java.lang.Double> arg)
Description copied from interface:InvertibleFactor
Backwards-transformationSolve [x]T[A] = [b]T (equivalent to [A]T[x] = [b]) by transforming [b] into [x] in-place.
- Specified by:
btran
in interfaceInvertibleFactor<java.lang.Double>
- Parameters:
arg
- [b] transformed into [x]
-
ftran
public void ftran(PhysicalStore<java.lang.Double> arg)
Description copied from interface:InvertibleFactor
Forward-transformationSolve [A][x] = [b] by transforming [b] into [x] in-place.
- Specified by:
ftran
in interfaceInvertibleFactor<java.lang.Double>
- Parameters:
arg
- [b] transformed into [x]
-
getColDim
public int getColDim()
- Specified by:
getColDim
in interfaceStructure2D
- Returns:
- The number of columns
-
getRowDim
public int getRowDim()
- Specified by:
getRowDim
in interfaceStructure2D
- Returns:
- The number of rows
-
getColumn
SparseArray<java.lang.Double> getColumn()
-
-