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.
  • Field Details

    • myColumnsCount

      private final int myColumnsCount
    • myContext

      private final ElementsSupplier<N extends Comparable<N>> myContext
    • myRowsCount

      private final int myRowsCount
  • Constructor Details

  • 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 interface Structure2D
      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 interface Structure2D
      Returns:
      The number of rows
    • getColDim

      public final int getColDim()
      Specified by:
      getColDim in interface Structure2D
      Returns:
      The number of columns
    • getRowDim

      public final int getRowDim()
      Specified by:
      getRowDim in interface Structure2D
      Returns:
      The number of rows
    • toString

      public final String toString()
      Overrides:
      toString in class Object
    • getContext

      final ElementsSupplier<N> getContext()