Package org.ojalgo.matrix.store
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 class
MatrixPipeline.BinaryOperatorLeft<N extends Comparable<N>>
(package private) static final class
MatrixPipeline.BinaryOperatorRight<N extends Comparable<N>>
(package private) static final class
MatrixPipeline.ColumnsModifier<N extends Comparable<N>>
(package private) static final class
MatrixPipeline.ColumnsReducer<N extends Comparable<N>>
(package private) static final class
MatrixPipeline.Multiplication<N extends Comparable<N>>
(package private) static final class
MatrixPipeline.RowsModifier<N extends Comparable<N>>
(package private) static final class
MatrixPipeline.RowsReducer<N extends Comparable<N>>
(package private) static final class
MatrixPipeline.Transformer<N extends Comparable<N>>
(package private) static final class
MatrixPipeline.Transpose<N extends Comparable<N>>
(package private) static final class
MatrixPipeline.UnaryOperator<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
FieldsModifier and TypeFieldDescriptionprivate final int
private 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 long
Only need to implement if the structure may contain more than Integer.MAX_VALUE elements.final long
Only need to implement if the structure may contain more than Integer.MAX_VALUE elements.final int
(package private) final ElementsSupplier
<N> final int
final String
toString()
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 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:Structure2D
Only need to implement if the structure may contain more than Integer.MAX_VALUE elements.- Specified by:
countColumns
in interfaceStructure2D
- Returns:
- The number of columns
-
countRows
public final long countRows()Description copied from interface:Structure2D
Only need to implement if the structure may contain more than Integer.MAX_VALUE elements.- Specified by:
countRows
in interfaceStructure2D
- Returns:
- The number of rows
-
getColDim
public final int getColDim()- Specified by:
getColDim
in interfaceStructure2D
- Returns:
- The number of columns
-
getRowDim
public final int getRowDim()- Specified by:
getRowDim
in interfaceStructure2D
- Returns:
- The number of rows
-
toString
-
getContext
-