Package ucar.ma2
Class Index7D
- java.lang.Object
-
- ucar.ma2.Index
-
- ucar.ma2.Index7D
-
-
Constructor Summary
Constructors Constructor Description Index7D(int[] shape)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
clone()
int
currentElement()
Get the current element's index into the 1D backing array.int[]
getCurrentCounter()
Get the current counter.int
incr()
Increment the current element by 1.protected void
precalc()
subclass specialization/optimization calculationsIndex
set(int[] index)
Set the current element's index.Index
set(int v0, int v1, int v2, int v3, int v4, int v5, int v6)
set current element at dimension 0,1,2,3,4,5,6 to v0,v1,v2,v3,v4,v5,v6Index
set0(int v)
set current element at dimension 0 to vIndex
set1(int v)
set current element at dimension 1 to vIndex
set2(int v)
set current element at dimension 2 to vIndex
set3(int v)
set current element at dimension 3 to vIndex
set4(int v)
set current element at dimension 4 to vIndex
set5(int v)
set current element at dimension 5 to vIndex
set6(int v)
set current element at dimension 6 to vvoid
setDim(int dim, int value)
set current element at dimension dim to vString
toString()
-
Methods inherited from class ucar.ma2.Index
computeSize, factory, getRank, getShape, getShape, getSize, set, set, set, set, set, set, setCurrentCounter, toStringDebug
-
-
-
-
Method Detail
-
precalc
protected void precalc()
Description copied from class:Index
subclass specialization/optimization calculations
-
getCurrentCounter
public int[] getCurrentCounter()
Description copied from class:Index
Get the current counter.- Overrides:
getCurrentCounter
in classIndex
- Returns:
- copy of the current counter.
-
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 classIndex
- 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.
-
setDim
public void setDim(int dim, int value)
Description copied from class:Index
set current element at dimension dim to v
-
set0
public Index set0(int v)
Description copied from class:Index
set current element at dimension 0 to v
-
set1
public Index set1(int v)
Description copied from class:Index
set current element at dimension 1 to v
-
set2
public Index set2(int v)
Description copied from class:Index
set current element at dimension 2 to v
-
set3
public Index set3(int v)
Description copied from class:Index
set current element at dimension 3 to v
-
set4
public Index set4(int v)
Description copied from class:Index
set current element at dimension 4 to v
-
set5
public Index set5(int v)
Description copied from class:Index
set current element at dimension 5 to v
-
set6
public Index set6(int v)
Description copied from class:Index
set current element at dimension 6 to v
-
set
public Index set(int v0, int v1, int v2, int v3, int v4, int v5, int v6)
Description copied from class:Index
set current element at dimension 0,1,2,3,4,5,6 to v0,v1,v2,v3,v4,v5,v6- Overrides:
set
in 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 valuev6
- set dimension 6 index to this value- Returns:
- this, so you can use A.get(i.set(i,j,k,l,m,n,p))
-
set
public Index set(int[] index)
Description copied from class:Index
Set the current element's index. General-rank case.
-
-