|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.ma2.Index
ucar.ma2.Index4D
public class Index4D
Specialization of Index for rank 4 arrays.
Index| Constructor Summary | |
|---|---|
Index4D(int[] shape)
|
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
|
int |
currentElement()
Get the current element's index into the 1D backing array. |
int[] |
getCurrentCounter()
|
Index |
set(int[] index)
Set the current element's index. |
Index |
set(int v0,
int v1,
int v2,
int v3)
set current element at dimension 0,1,2,3 to v0,v1,v2,v3 |
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 |
void |
setDim(int dim,
int value)
set current element at dimension dim to v |
java.lang.String |
toString()
|
| Methods inherited from class ucar.ma2.Index |
|---|
computeSize, factory, getIndexName, getRank, getShape, getSize, set, set, set, set, set, set, set4, set5, set6, setIndexName, toStringDebug |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Index4D(int[] shape)
| Method Detail |
|---|
public java.lang.String toString()
toString in class Indexpublic int[] getCurrentCounter()
getCurrentCounter in class Indexpublic int currentElement()
Index
currentElement in class Index
public void setDim(int dim,
int value)
Index
setDim in class Indexpublic Index set0(int v)
Index
set0 in class Indexpublic Index set1(int v)
Index
set1 in class Indexpublic Index set2(int v)
Index
set2 in class Indexpublic Index set3(int v)
Index
set3 in class Index
public Index set(int v0,
int v1,
int v2,
int v3)
Index
set in class Indexpublic Index set(int[] index)
Index
set in class Indexpublic java.lang.Object clone()
clone in class Index
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||