Class MultiArrayDouble.MultiArray2DDouble

  • Enclosing class:
    MultiArrayDouble

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

      • MultiArray2DDouble

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

      • get

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

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

        public double[] getRow​(int row)