public class BooleanBroadcastIterator extends BooleanIterator
Modifier and Type | Field and Description |
---|---|
protected int[] |
aDelta |
protected int[] |
aShape |
protected int[] |
aStride |
protected int |
endrank |
protected int[] |
oDelta |
protected int[] |
oStride |
protected int[] |
pos
position in dataset
|
aDataset, aMax, aStart, aStep, cDataset, cIndex, maxShape, oDataset, oIndex, oStart, oStep, outputA, value
index
Constructor and Description |
---|
BooleanBroadcastIterator(boolean v,
Dataset a,
Dataset c,
Dataset o,
boolean createIfNull)
Construct a boolean iterator that stops at every position in the choice dataset where its value matches
the given boolean
|
Modifier and Type | Method and Description |
---|---|
int[] |
getFirstShape() |
int[] |
getMaskShape() |
int[] |
getPos() |
boolean |
hasNext() |
void |
reset()
Reset iterator
|
createIterator, createIterator, createIterator, createIterator, getChoice, getOutput, getShape
protected int[] aShape
protected int[] aStride
protected int[] oStride
protected int endrank
protected int[] pos
protected int[] aDelta
protected int[] oDelta
public BooleanBroadcastIterator(boolean v, Dataset a, Dataset c, Dataset o, boolean createIfNull)
v
- boolean valuea
- primary datasetc
- choice dataseto
- output dataset, can be nullcreateIfNull
- if true create the output dataset if that is nullpublic boolean hasNext()
hasNext
in class IndexIterator
public int[] getFirstShape()
public int[] getMaskShape()
public void reset()
IndexIterator
reset
in class IndexIterator
public int[] getPos()
getPos
in class IndexIterator
Copyright © 2014–2019 Eclipse Foundation. All rights reserved.