类 Section.Iterator

  • 封闭类:
    Section

    public class Section.Iterator
    extends java.lang.Object
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      int getResultIndex()
      Get the current index in the result array, ie in this section
      boolean hasNext()
      Return true if there are more elements
      int next​(int[] index)
      Get the position in the equivalant 1D array of shape[]
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 方法详细资料

      • hasNext

        public boolean hasNext()
        Return true if there are more elements
        返回:
        true if there are more elements
      • next

        public int next​(int[] index)
        Get the position in the equivalant 1D array of shape[]
        参数:
        index - if not null, return the current nD index
        返回:
        the current position in a 1D array
      • getResultIndex

        public int getResultIndex()
        Get the current index in the result array, ie in this section
        返回:
        result index