|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectucar.ma2.Index
ucar.ma2.Index7D
public class Index7D
Specialization of Index for rank 7 arrays.
Index
Field Summary |
---|
Fields inherited from class ucar.ma2.Index |
---|
current, offset, rank, scalarIndexImmutable, shape, size, stride |
Constructor Summary | |
---|---|
Index7D(int[] shape)
|
Method Summary | |
---|---|
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[] index)
Set the current element's index. |
Index |
set(int v0,
int v1,
int v2,
int v3,
int v4,
int v5,
int v6)
set current element at dimension 0,1,2,3,4,5,6 to v0,v1,v2,v3,v4,v5,v6 |
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 |
Index |
set5(int v)
set current element at dimension 5 to v |
Index |
set6(int v)
set current element at dimension 6 to v |
void |
setDim(int dim,
int value)
set current element at dimension dim to v |
String |
toString()
|
Methods inherited from class ucar.ma2.Index |
---|
computeSize, factory, getRank, getShape, getShape, getSize, set, set, set, set, set, set, setCurrentCounter, toStringDebug |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Index7D(int[] shape)
Method Detail |
---|
protected void precalc()
Index
precalc
in class Index
public String toString()
toString
in class Index
public int[] getCurrentCounter()
Index
getCurrentCounter
in class Index
public int currentElement()
Index
currentElement
in class Index
public int incr()
Index
incr
in class Index
public void setDim(int dim, int value)
Index
setDim
in class Index
dim
- set this dimensionvalue
- to this valuepublic Index set0(int v)
Index
set0
in class Index
v
- set 0th dimension index to this value
public Index set1(int v)
Index
set1
in class Index
v
- set dimension 1 index to this value
public Index set2(int v)
Index
set2
in class Index
v
- set dimension 2 index to this value
public Index set3(int v)
Index
set3
in class Index
v
- set dimension 3 index to this value
public Index set4(int v)
Index
set4
in class Index
v
- set dimension 4 index to this value
public Index set5(int v)
Index
set5
in class Index
v
- set dimension 5 index to this value
public Index set6(int v)
Index
set6
in class Index
v
- set dimension 6 index to this value
public Index set(int v0, int v1, int v2, int v3, int v4, int v5, int v6)
Index
set
in class Index
v0
- 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 valuev5
- set dimension 5 index to this valuev6
- set dimension 6 index to this value
public Index set(int[] index)
Index
set
in class Index
index
- set current value to these values
public Object clone()
clone
in class Index
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |