Class Array1D<T>

    • Constructor Detail

      • Array1D

        public Array1D​(int size)
    • 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>