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:
  • Constructor Details

    • Index0D

      public Index0D(int[] shape)
  • Method Details

    • 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()
    • clone

      public Object clone()
      Overrides:
      clone in class Index
    • set

      public Index set()