Package ucar.ma2

Class Index0D

  • All Implemented Interfaces:
    Cloneable

    public class Index0D
    extends Index
    Specialization of Index for rank 0 arrays, ie scalars.
    See Also:
    Index
    • Constructor Detail

      • Index0D

        public Index0D​(int[] shape)
    • Method Detail

      • currentElement

        public int currentElement()
        Description copied from class: Index
        Get the current element's index into the 1D backing array. VLEN stops processing.
        Overrides:
        currentElement in class Index
        Returns:
        the current element's index into the 1D backing array.
      • incr

        public int incr()
        Description copied from class: Index
        Increment the current element by 1. Used by IndexIterator. General rank, with subclass specialization. Vlen skipped.
        Overrides:
        incr in class Index
        Returns:
        currentElement()
      • set

        public Index set()