Class MultiArrayFloat.MultiArray2DFloat

  • Enclosing class:
    MultiArrayFloat

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

      • MultiArray2DFloat

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

      • get

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

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

        public float[] getRow​(int row)