Class Array4D<T>

    • Constructor Detail

      • Array4D

        public Array4D​(int tSize,
                       int zSize,
                       int ySize,
                       int xSize)
    • Method Detail

      • getNDim

        public final int getNDim()
        Description copied from interface: Array
        Gets the number of dimensions of the array. Equal to getShape().length.
        Specified by:
        getNDim in interface Array<T>
      • iterator

        public Iterator<T> iterator()
        Description copied from interface: Array
        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 Array<T>
        Specified by:
        iterator in interface Iterable<T>
      • size

        public long size()
        Description copied from interface: Array
        Gets the number of values in the array.
        Specified by:
        size in interface Array<T>
      • getShape

        public int[] getShape()
        Description copied from interface: Array
        Gets the shape of the array, i.e. the number of points in each direction.
        Specified by:
        getShape in interface Array<T>
      • getXSize

        public int getXSize()
        Convenience method to get the size in the x-direction
      • getYSize

        public int getYSize()
        Convenience method to get the size in the y-direction
      • getZSize

        public int getZSize()
        Convenience method to get the size in the z-direction
      • getTSize

        public int getTSize()
        Convenience method to get the size in the t-direction
      • getXIndex

        public int getXIndex()
        Returns:
        The index used for x values
      • getYIndex

        public int getYIndex()
        Returns:
        The index used for y values
      • getZIndex

        public int getZIndex()
        Returns:
        The index used for z values
      • getTIndex

        public int getTIndex()
        Returns:
        The index used for t values