类 Index2D

  • 所有已实现的接口:
    java.lang.Cloneable

    public class Index2D
    extends Index
    Specialization of Index for rank 2 arrays.
    作者:
    caron
    另请参阅:
    Index
    • 构造器详细资料

      • Index2D

        public Index2D​(int[] shape)
    • 方法详细资料

      • precalc

        protected void precalc()
        从类复制的说明: Index
        subclass specialization/optimization calculations
        覆盖:
        precalc 在类中 Index
      • getCurrentCounter

        public int[] getCurrentCounter()
        从类复制的说明: Index
        Get the current counter.
        覆盖:
        getCurrentCounter 在类中 Index
        返回:
        copy of the current counter.
      • toString

        public java.lang.String toString()
        覆盖:
        toString 在类中 Index
      • currentElement

        public int currentElement()
        从类复制的说明: Index
        Get 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()
        从类复制的说明: Index
        Increment the current element by 1. Used by IndexIterator. General rank, with subclass specialization. Vlen skipped.
        覆盖:
        incr 在类中 Index
        返回:
        currentElement()
      • setDim

        public void setDim​(int dim,
                           int value)
        从类复制的说明: Index
        set current element at dimension dim to v
        覆盖:
        setDim 在类中 Index
        参数:
        dim - set this dimension
        value - to this value
      • set

        public Index set​(int[] index)
        从类复制的说明: Index
        Set the current element's index. General-rank case.
        覆盖:
        set 在类中 Index
        参数:
        index - set current value to these values
        返回:
        this, so you can use A.get(i.set(i))
      • set0

        public Index set0​(int v)
        从类复制的说明: Index
        set current element at dimension 0 to v
        覆盖:
        set0 在类中 Index
        参数:
        v - set 0th dimension index to this value
        返回:
        this, so you can use A.get(i.set(i))
      • set1

        public Index set1​(int v)
        从类复制的说明: Index
        set current element at dimension 1 to v
        覆盖:
        set1 在类中 Index
        参数:
        v - set dimension 1 index to this value
        返回:
        this, so you can use A.get(i.set(i))
      • set

        public Index set​(int v0,
                         int v1)
        从类复制的说明: Index
        set current element at dimension 0,1 to v0,v1
        覆盖:
        set 在类中 Index
        参数:
        v0 - set dimension 0 index to this value
        v1 - set dimension 1 index to this value
        返回:
        this, so you can use A.get(i.set(i,j))
      • clone

        public java.lang.Object clone()
        覆盖:
        clone 在类中 Index