类 Index4D
- java.lang.Object
-
- org.meteoinfo.ndarray.Index
-
- org.meteoinfo.ndarray.Index4D
-
-
构造器概要
构造器 构造器 说明 Index4D(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)set current element at dimension 0,1,2,3 to v0,v1,v2,v3Indexset0(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 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, set4, set5, set6, 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)
从类复制的说明:Indexset current element at dimension 0,1,2,3 to v0,v1,v2,v3
-
set
public Index set(int[] index)
从类复制的说明:IndexSet the current element's index. General-rank case.
-
-