public class SingleItemIterator extends IndexIterator
index
Constructor and Description |
---|
SingleItemIterator(int offset,
int size)
Constructor for an iterator over single item that will be broadcast over
given size of broadcast shape
|
Modifier and Type | Method and Description |
---|---|
int[] |
getPos() |
boolean |
hasNext() |
void |
reset()
Reset iterator
|
getShape
public SingleItemIterator(int offset, int size)
offset
- offset to single itemsize
- public boolean hasNext()
hasNext
in class IndexIterator
public int[] getPos()
getPos
in class IndexIterator
public void reset()
IndexIterator
reset
in class IndexIterator
Copyright © 2014–2017 Eclipse Foundation. All rights reserved.