类 Section.Iterator

  • 封闭类:
    Section

    public class Section.Iterator
    extends Object
    • 方法详细资料

      • 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