类 Index1D
- java.lang.Object
-
- org.meteoinfo.ndarray.Index
-
- org.meteoinfo.ndarray.Index1D
-
-
构造器概要
构造器 构造器 说明 Index1D(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 v0)set current element at dimension 0 to v0Indexset(int[] index)Set the current element's index.Indexset0(int v)set current element at dimension 0 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, set1, set2, set3, 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[] index)
从类复制的说明:IndexSet the current element's index. General-rank case.
-
-