类 Index1D

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

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

      • Index1D

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

      • toString

        public java.lang.String toString()
        覆盖:
        toString 在类中 Index
      • 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.
      • 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
      • 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))
      • set

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

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