Class MultiArrayByte.MultiArray2DByte

  • Enclosing class:
    MultiArrayByte

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

      • MultiArray2DByte

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

      • get

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

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

        public byte[] getRow​(int row)