Package ucar.ma2
Class Index0D
java.lang.Object
ucar.ma2.Index
ucar.ma2.Index0D
- All Implemented Interfaces:
Cloneable
Specialization of Index for rank 0 arrays, ie scalars.
- See Also:
-
Field Summary
Fields inherited from class ucar.ma2.Index
scalarIndexImmutable -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Index0D
public Index0D(int[] shape)
-
-
Method Details
-
currentElement
public int currentElement()Description copied from class:IndexGet the current element's index into the 1D backing array. VLEN stops processing.- Overrides:
currentElementin classIndex- Returns:
- the current element's index into the 1D backing array.
-
incr
public int incr()Description copied from class:IndexIncrement the current element by 1. Used by IndexIterator. General rank, with subclass specialization. Vlen skipped. -
clone
-
set
-