public class NDIndexBooleans extends java.lang.Object implements NDIndexElement
NDIndexElement
to return values based on a mask binary NDArray.Constructor and Description |
---|
NDIndexBooleans(NDArray index)
Constructs a
NDIndexBooleans instance with specified mask binary NDArray. |
Modifier and Type | Method and Description |
---|---|
NDArray |
getIndex()
Returns the mask binary
NDArray . |
int |
getRank()
Returns the number of dimensions occupied by this index element.
|
public NDIndexBooleans(NDArray index)
NDIndexBooleans
instance with specified mask binary NDArray.index
- the mask binary NDArray
public NDArray getIndex()
NDArray
.NDArray
public int getRank()
getRank
in interface NDIndexElement