Class Primitive2D.Wrapper

java.lang.Object
org.ojalgo.structure.Primitive2D
org.ojalgo.structure.Primitive2D.Wrapper
All Implemented Interfaces:
Access1D<Double>, Access2D<Double>, Mutate1D, Mutate2D, Structure1D, Structure2D
Enclosing class:
Primitive2D

static final class Primitive2D.Wrapper extends Primitive2D
  • Field Details

  • Constructor Details

  • Method Details

    • countColumns

      public long countColumns()
      Description copied from interface: Structure2D
      Only need to implement if the structure may contain more than Integer.MAX_VALUE elements.
      Returns:
      The number of columns
    • countRows

      public long countRows()
      Description copied from interface: Structure2D
      Only need to implement if the structure may contain more than Integer.MAX_VALUE elements.
      Returns:
      The number of rows
    • doubleValue

      public double doubleValue(int row, int col)
      Description copied from interface: Access2D
      Extracts one element of this matrix as a double.
      Parameters:
      row - A row index.
      col - A column index.
      Returns:
      One matrix element
    • doubleValue

      public double doubleValue(long row, long col)
    • getColDim

      public int getColDim()
      Returns:
      The number of columns
    • getRowDim

      public int getRowDim()
      Returns:
      The number of rows
    • set

      public void set(int row, int col, double value)
    • set

      public void set(long row, long col, double value)