类 Index7D
- java.lang.Object
-
- org.meteoinfo.ndarray.Index
-
- org.meteoinfo.ndarray.Index7D
-
-
构造器概要
构造器 构造器 说明 Index7D(int[] shape)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 java.lang.Objectclone()intcurrentElement()Get the current element's index into the 1D backing array.int[]getCurrentCounter()Get the current counter.intincr()Increment the current element by 1.protected voidprecalc()subclass specialization/optimization calculationsIndexset(int[] index)Set the current element's index.Indexset(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,v6Indexset0(int v)set current element at dimension 0 to vIndexset1(int v)set current element at dimension 1 to vIndexset2(int v)set current element at dimension 2 to vIndexset3(int v)set current element at dimension 3 to vIndexset4(int v)set current element at dimension 4 to vIndexset5(int v)set current element at dimension 5 to vIndexset6(int v)set current element at dimension 6 to vvoidsetDim(int dim, int value)set current element at dimension dim to vjava.lang.StringtoString()-
从类继承的方法 org.meteoinfo.ndarray.Index
computeSize, factory, getRank, getShape, getShape, getSize, isFastIterator, section, set, set, set, set, set, set, setCurrentCounter, setCurrentIndex, toStringDebug
-
-
-
-
方法详细资料
-
precalc
protected void precalc()
从类复制的说明:Indexsubclass specialization/optimization calculations
-
getCurrentCounter
public int[] getCurrentCounter()
从类复制的说明:IndexGet the current counter.- 覆盖:
getCurrentCounter在类中Index- 返回:
- copy of the current counter.
-
currentElement
public int currentElement()
从类复制的说明:IndexGet the current element's index into the 1D backing array. VLEN stops processing.- 覆盖:
currentElement在类中Index- 返回:
- the current element's index into the 1D backing array.
-
incr
public int incr()
从类复制的说明:IndexIncrement the current element by 1. Used by IndexIterator. General rank, with subclass specialization. Vlen skipped.
-
setDim
public void setDim(int dim, int value)从类复制的说明:Indexset current element at dimension dim to v
-
set
public Index set(int v0, int v1, int v2, int v3, int v4, int v5, int v6)
从类复制的说明:Indexset current element at dimension 0,1,2,3,4,5,6 to v0,v1,v2,v3,v4,v5,v6- 覆盖:
set在类中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- 返回:
- this, so you can use A.get(i.set(i,j,k,l,m,n,p))
-
set
public Index set(int[] index)
从类复制的说明:IndexSet the current element's index. General-rank case.
-
-