Class NdIndexIterator

  • All Implemented Interfaces:
    Iterator<long[]>

    public class NdIndexIterator
    extends Object
    implements Iterator<long[]>
    • Constructor Detail

      • NdIndexIterator

        public NdIndexIterator​(int... shape)
        Pass in the shape to iterate over. Defaults to c ordering
        Parameters:
        shape - the shape to iterate over
      • NdIndexIterator

        public NdIndexIterator​(long... shape)
      • NdIndexIterator

        public NdIndexIterator​(char order,
                               boolean cache,
                               long... shape)
        Pass in the shape to iterate over. Defaults to c ordering
        Parameters:
        shape - the shape to iterate over
      • NdIndexIterator

        public NdIndexIterator​(char order,
                               int... shape)
        Pass in the shape to iterate over
        Parameters:
        shape - the shape to iterate over
      • NdIndexIterator

        public NdIndexIterator​(char order,
                               long... shape)
    • Method Detail

      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface Iterator<long[]>
      • next

        public long[] next()
        Specified by:
        next in interface Iterator<long[]>
      • remove

        public void remove()
        Specified by:
        remove in interface Iterator<long[]>