Class MatrixPipeline<N extends 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 Comparable<N>>
extends 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 ClassesModifier and TypeClassDescription(package private) static final classMatrixPipeline.BinaryOperatorLeft<N extends Comparable<N>>(package private) static final classMatrixPipeline.BinaryOperatorRight<N extends Comparable<N>>(package private) static final classMatrixPipeline.ColumnsModifier<N extends Comparable<N>>(package private) static final classMatrixPipeline.ColumnsReducer<N extends Comparable<N>>(package private) static final classMatrixPipeline.Multiplication<N extends Comparable<N>>(package private) static final classMatrixPipeline.RowsModifier<N extends Comparable<N>>(package private) static final classMatrixPipeline.RowsReducer<N extends Comparable<N>>(package private) static final classMatrixPipeline.Transformer<N extends Comparable<N>>(package private) static final classMatrixPipeline.Transpose<N extends Comparable<N>>(package private) static final classMatrixPipeline.UnaryOperator<N extends Comparable<N>>Nested classes/interfaces inherited from interface Structure1D
Structure1D.BasicMapper<T>, Structure1D.IndexMapper<T>, Structure1D.IntIndex, Structure1D.LongIndex, Structure1D.LoopCallbackNested classes/interfaces inherited from interface Structure2D
Structure2D.IntRowColumn, Structure2D.Logical<S,B>, Structure2D.LongRowColumn, Structure2D.ReducibleTo1D<R>, Structure2D.Reshapable, Structure2D.RowColumnKey<R, C>, Structure2D.RowColumnMapper<R, C> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intprivate final ElementsSupplier<N> private final int -
Constructor Summary
ConstructorsConstructorDescriptionMatrixPipeline(ElementsSupplier<N> context) MatrixPipeline(ElementsSupplier<N> context, int rowsCount, int columnsCount) -
Method Summary
Modifier and TypeMethodDescriptionfinal longOnly need to implement if the structure may contain more than Integer.MAX_VALUE elements.final longOnly need to implement if the structure may contain more than Integer.MAX_VALUE elements.final int(package private) final ElementsSupplier<N> final intfinal StringtoString()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Access2D.Collectable
collect, supplyToMethods inherited from interface ElementsSupplier
onAll, onAny, onColumns, onColumns, onMatching, onMatching, onRows, onRows, transposeMethods inherited from interface Operate2D
onAll, onAll, onAll, onAll, onAll, onCompatible, onCompatibleMethods inherited from interface Structure2D
count, firstInColumn, firstInRow, getMaxDim, getMinDim, isEmpty, isFat, isScalar, isSquare, isTall, isVector, limitOfColumn, limitOfRow, size
-
Field Details
-
myColumnsCount
private final int myColumnsCount -
myContext
-
myRowsCount
private final int myRowsCount
-
-
Constructor Details
-
MatrixPipeline
MatrixPipeline(ElementsSupplier<N> context) -
MatrixPipeline
MatrixPipeline(ElementsSupplier<N> context, int rowsCount, int columnsCount)
-
-
Method Details
-
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
-
getContext
-