Module ojalgo
Package org.ojalgo.matrix.store
Class MatrixPipeline<N extends java.lang.Comparable<N>>
- java.lang.Object
-
- org.ojalgo.matrix.store.MatrixPipeline<N>
-
- All Implemented Interfaces:
ElementsSupplier<N>,Access2D.Collectable<N,TransformableRegion<N>>,Operate2D<N,ElementsSupplier<N>>,Structure1D,Structure2D
- Direct Known Subclasses:
MatrixPipeline.BinaryOperatorLeft,MatrixPipeline.BinaryOperatorRight,MatrixPipeline.ColumnsModifier,MatrixPipeline.ColumnsReducer,MatrixPipeline.Multiplication,MatrixPipeline.RowsModifier,MatrixPipeline.RowsReducer,MatrixPipeline.Transformer,MatrixPipeline.Transpose,MatrixPipeline.UnaryOperator
abstract class MatrixPipeline<N extends java.lang.Comparable<N>> extends java.lang.Object implements ElementsSupplier<N>
Intermediate step in a matrix pipeline – a chain of operations to be executed when the elements are extracted. Intermediate steps cannot alter the size/shape of the (future) matrix, only the elements themselves. One notable exception is the ElementsSupplier.transpose() operation, which can change the shape of the matrix.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classMatrixPipeline.BinaryOperatorLeft<N extends java.lang.Comparable<N>>(package private) static classMatrixPipeline.BinaryOperatorRight<N extends java.lang.Comparable<N>>(package private) static classMatrixPipeline.ColumnsModifier<N extends java.lang.Comparable<N>>(package private) static classMatrixPipeline.ColumnsReducer<N extends java.lang.Comparable<N>>(package private) static classMatrixPipeline.Multiplication<N extends java.lang.Comparable<N>>(package private) static classMatrixPipeline.RowsModifier<N extends java.lang.Comparable<N>>(package private) static classMatrixPipeline.RowsReducer<N extends java.lang.Comparable<N>>(package private) static classMatrixPipeline.Transformer<N extends java.lang.Comparable<N>>(package private) static classMatrixPipeline.Transpose<N extends java.lang.Comparable<N>>(package private) static classMatrixPipeline.UnaryOperator<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 intmyColumnsCountprivate ElementsSupplier<N>myContextprivate intmyRowsCount
-
Constructor Summary
Constructors Constructor Description MatrixPipeline(ElementsSupplier<N> context)MatrixPipeline(ElementsSupplier<N> context, int rowsCount, int columnsCount)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longcountColumns()Only need to implement if the structure may contain more than Integer.MAX_VALUE elements.longcountRows()Only need to implement if the structure may contain more than Integer.MAX_VALUE elements.intgetColDim()(package private) ElementsSupplier<N>getContext()intgetRowDim()java.lang.StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.ojalgo.structure.Access2D.Collectable
collect, supplyTo
-
Methods inherited from interface org.ojalgo.matrix.store.ElementsSupplier
onAll, onAny, onColumns, onColumns, onMatching, onMatching, onRows, onRows, transpose
-
Methods inherited from interface org.ojalgo.structure.Operate2D
onAll, onAll, onAll, onAll, onAll, onCompatible, onCompatible
-
Methods inherited from interface org.ojalgo.structure.Structure2D
count, firstInColumn, firstInRow, getMaxDim, getMinDim, isEmpty, isFat, isScalar, isSquare, isTall, isVector, limitOfColumn, limitOfRow, size
-
-
-
-
Field Detail
-
myColumnsCount
private final int myColumnsCount
-
myContext
private final ElementsSupplier<N extends java.lang.Comparable<N>> myContext
-
myRowsCount
private final int myRowsCount
-
-
Constructor Detail
-
MatrixPipeline
MatrixPipeline(ElementsSupplier<N> context)
-
MatrixPipeline
MatrixPipeline(ElementsSupplier<N> context, int rowsCount, int columnsCount)
-
-
Method Detail
-
countColumns
public final long countColumns()
Description copied from interface:Structure2DOnly need to implement if the structure may contain more than Integer.MAX_VALUE elements.- Specified by:
countColumnsin interfaceStructure2D- Returns:
- The number of columns
-
countRows
public final long countRows()
Description copied from interface:Structure2DOnly need to implement if the structure may contain more than Integer.MAX_VALUE elements.- Specified by:
countRowsin interfaceStructure2D- Returns:
- The number of rows
-
getColDim
public final int getColDim()
- Specified by:
getColDimin interfaceStructure2D- Returns:
- The number of columns
-
getRowDim
public final int getRowDim()
- Specified by:
getRowDimin interfaceStructure2D- Returns:
- The number of rows
-
toString
public final java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getContext
final ElementsSupplier<N> getContext()
-
-