|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.ma2.Index
ucar.ma2.Index2D
public class Index2D
Specialization of Index for rank 2 arrays.
Index| Field Summary |
|---|
| Fields inherited from class ucar.ma2.Index |
|---|
scalarIndexImmutable |
| Constructor Summary | |
|---|---|
Index2D(int[] shape)
|
|
| Method Summary | |
|---|---|
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. |
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 |
java.lang.String |
toString()
|
| Methods inherited from class ucar.ma2.Index |
|---|
computeSize, factory, getRank, getShape, getShape, getSize, set, set, set, set, set, set, set2, set3, set4, set5, set6, setCurrentCounter, toStringDebug |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Index2D(int[] shape)
| Method Detail |
|---|
public int[] getCurrentCounter()
Index
getCurrentCounter in class Indexpublic java.lang.String toString()
toString in class Indexpublic int currentElement()
Index
currentElement in class Indexpublic int incr()
Index
incr in class Index
public void setDim(int dim,
int value)
Index
setDim in class Indexdim - set this dimensionvalue - to this valuepublic Index set(int[] index)
Index
set in class Indexindex - set current value to these values
public Index set0(int v)
Index
set0 in class Indexv - set 0th dimension index to this value
public Index set1(int v)
Index
set1 in class Indexv - set dimension 1 index to this value
public Index set(int v0,
int v1)
Index
set in class Indexv0 - set dimension 0 index to this valuev1 - set dimension 1 index to this value
public java.lang.Object clone()
clone in class Index
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||