Class MultiArrayInt.MultiArray2DInt

  • Enclosing class:
    MultiArrayInt

    public static class MultiArrayInt.MultiArray2DInt
    extends MultiArrayInt
    Specialisation for the 2D case to allow for easier and more efficient usage
    • Constructor Detail

      • MultiArray2DInt

        protected MultiArray2DInt​(int[] elements,
                                  int[] dimensions,
                                  int offset)
    • Method Detail

      • get

        public int get​(int row,
                       int column)
        Parameters:
        row - rowIndex
        column - columnIndex
        Returns:
        value at M(rowIndex,columnIndex)
      • set

        public void set​(int row,
                        int column,
                        int value)
        Parameters:
        row - rowIndex
        column - columnIndex
        value - new value: M(rowIndex,columnIndex) == value
      • getRow

        public int[] getRow​(int row)