| Constructor and Description |
|---|
Index1D(int[] shape) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.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 calculations
|
Index |
set(int v0)
set current element at dimension 0 to v0
|
Index |
set(int[] index)
Set the current element's index.
|
Index |
set0(int v)
set current element at dimension 0 to v
|
void |
setDim(int dim,
int value)
set current element at dimension dim to v
|
java.lang.String |
toString() |
protected void precalc()
Indexpublic 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 set(int v0)
Indexpublic Index set(int[] index)
Index