Class MultiArrayLong.MultiArray2DLong

  • Enclosing class:
    MultiArrayLong

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

      • MultiArray2DLong

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

      • get

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

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

        public long[] getRow​(int row)