public class SingleInputBroadcastIterator extends IndexIterator
| Modifier and Type | Field and Description |
|---|---|
double |
aDouble
Current value in array
|
int |
aIndex
Index in array
|
long |
aLong
Current value in array
|
int |
oIndex
Index in array
|
index| Constructor and Description |
|---|
SingleInputBroadcastIterator(Dataset a,
Dataset o) |
SingleInputBroadcastIterator(Dataset a,
Dataset o,
boolean createIfNull) |
SingleInputBroadcastIterator(Dataset a,
Dataset o,
boolean createIfNull,
boolean allowInteger,
boolean allowComplex) |
| Modifier and Type | Method and Description |
|---|---|
Dataset |
getOutput() |
int[] |
getPos() |
int[] |
getShape() |
boolean |
hasNext() |
boolean |
isOutputDouble() |
void |
reset()
Reset iterator
|
void |
setOutputDouble(boolean asDouble)
Set to output doubles
|
public int aIndex
public int oIndex
public double aDouble
public long aLong
public SingleInputBroadcastIterator(Dataset a, Dataset o)
a - o - (can be null for new dataset, or a)public SingleInputBroadcastIterator(Dataset a, Dataset o, boolean createIfNull)
a - o - (can be null for new dataset, or a)createIfNull - (by default, can create float or complex datasets)public SingleInputBroadcastIterator(Dataset a, Dataset o, boolean createIfNull, boolean allowInteger, boolean allowComplex)
a - o - (can be null for new dataset, or a)createIfNull - allowInteger - if true, can create integer datasetsallowComplex - if true, can create complex datasetspublic boolean isOutputDouble()
public void setOutputDouble(boolean asDouble)
asDouble - public int[] getShape()
getShape in class IndexIteratorpublic boolean hasNext()
hasNext in class IndexIteratorpublic int[] getPos()
getPos in class IndexIteratorpublic void reset()
IndexIteratorreset in class IndexIteratorCopyright © 2014–2019 Eclipse Foundation. All rights reserved.