Package ucar.ma2
Class IndexConstant
java.lang.Object
ucar.ma2.Index
ucar.ma2.IndexConstant
- All Implemented Interfaces:
Cloneable
An Index into an Array that always returns 0. It can have any shape, so it allows you to create a
constant Array of any shape.
-
Field Summary
Fields inherited from class ucar.ma2.Index
scalarIndexImmutable -
Method Summary
-
Method Details
-
currentElement
public int currentElement()always return 0- Overrides:
currentElementin classIndex- Returns:
- the current element's index into the 1D backing array.
-