Interface Array<E>

    • Method Detail

      • getNDim

        int getNDim()
        Gets the number of dimensions of the array. Equal to getShape().length.
      • getShape

        int[] getShape()
        Gets the shape of the array, i.e. the number of points in each direction.
      • iterator

        Iterator<E> iterator()
        Returns an iterator over all the values in the array. The convention is that the last dimension (represented by the last entry in getShape()) varies fastest.
        Specified by:
        iterator in interface Iterable<E>
      • get

        E get​(int... coords)
        Gets a value from the array
      • set

        void set​(E value,
                 int... coords)
        Sets a value in the array (optional operation)
        Throws:
        ArrayIndexOutOfBoundsException - if any of the co-ordinates are beyond the bounds of this Array
      • size

        long size()
        Gets the number of values in the array.