Package ucar.ma2
Class Index6D
java.lang.Object
ucar.ma2.Index
ucar.ma2.Index6D
- All Implemented Interfaces:
Cloneable
Specialization of Index for rank 6 arrays.
- See Also:
-
Field Summary
Fields inherited from class ucar.ma2.Index
scalarIndexImmutable -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()intGet the current element's index into the 1D backing array.int[]Get the current counter.intincr()Increment the current element by 1.set(int[] index) Set the current element's index.set(int v0, int v1, int v2, int v3, int v4, int v5) set current element at dimension 0,1,2,3,4,5 to v0,v1,v2,v3,v4,v5set0(int v) set current element at dimension 0 to vset1(int v) set current element at dimension 1 to vset2(int v) set current element at dimension 2 to vset3(int v) set current element at dimension 3 to vset4(int v) set current element at dimension 4 to vset5(int v) set current element at dimension 5 to vvoidsetDim(int dim, int value) set current element at dimension dim to vtoString()
-
Constructor Details
-
Index6D
public Index6D(int[] shape)
-
-
Method Details
-
toString
-
getCurrentCounter
public int[] getCurrentCounter()Description copied from class:IndexGet the current counter.- Overrides:
getCurrentCounterin classIndex- Returns:
- copy of the current counter.
-
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. -
setDim
public void setDim(int dim, int value) Description copied from class:Indexset current element at dimension dim to v -
set0
Description copied from class:Indexset current element at dimension 0 to v -
set1
Description copied from class:Indexset current element at dimension 1 to v -
set2
Description copied from class:Indexset current element at dimension 2 to v -
set3
Description copied from class:Indexset current element at dimension 3 to v -
set4
Description copied from class:Indexset current element at dimension 4 to v -
set5
Description copied from class:Indexset current element at dimension 5 to v -
set
Description copied from class:Indexset current element at dimension 0,1,2,3,4,5 to v0,v1,v2,v3,v4,v5- Overrides:
setin classIndex- Parameters:
v0- set dimension 0 index to this valuev1- set dimension 1 index to this valuev2- set dimension 2 index to this valuev3- set dimension 3 index to this valuev4- set dimension 4 index to this valuev5- set dimension 5 index to this value- Returns:
- this, so you can use A.get(i.set(i,j,k,l,m,n))
-
set
Description copied from class:IndexSet the current element's index. General-rank case. -
clone
-