scalarIndexImmutable| Constructor and Description |
|---|
Index2D(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)
set current element at dimension 0,1 to v0,v1
|
Index |
set0(int v)
set current element at dimension 0 to v
|
Index |
set1(int v)
set current element at dimension 1 to v
|
void |
setDim(int dim,
int value)
set current element at dimension dim to v
|
String |
toString() |
public int currentElement()
IndexcurrentElement in class Indexpublic int[] getCurrentCounter()
IndexgetCurrentCounter in class Indexpublic int incr()
Indexpublic Index set(int[] index)
Indexpublic Index set(int v0, int v1)
Indexpublic Index set0(int v)
Indexpublic Index set1(int v)
Indexpublic void setDim(int dim,
int value)
Index