scalarIndexImmutable| Constructor and Description |
|---|
Index5D(int[] shape) |
| Modifier and Type | Method and 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.
|
Index |
set(int[] index)
Set the current element's index.
|
Index |
set(int v0,
int v1,
int v2,
int v3,
int v4)
set current element at dimension 0,1,2,3,4 to v0,v1,v2,v3,v4
|
Index |
set0(int v)
set current element at dimension 0 to v
|
Index |
set1(int v)
set current element at dimension 1 to v
|
Index |
set2(int v)
set current element at dimension 2 to v
|
Index |
set3(int v)
set current element at dimension 3 to v
|
Index |
set4(int v)
set current element at dimension 4 to v
|
void |
setDim(int dim,
int value)
set current element at dimension dim to v
|
String |
toString() |
public int[] getCurrentCounter()
IndexgetCurrentCounter in class Indexpublic int currentElement()
IndexcurrentElement in class Indexpublic int incr()
Indexpublic void setDim(int dim,
int value)
Indexpublic Index set0(int v)
Indexpublic Index set1(int v)
Indexpublic Index set2(int v)
Indexpublic Index set3(int v)
Indexpublic Index set4(int v)
Indexpublic Index set(int[] index)
Indexpublic Index set(int v0, int v1, int v2, int v3, int v4)
Indexset in class Indexv0 - 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 value