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 NDArraypublic NDArray getIndex()
NDArray.NDArraypublic int getRank()
getRank in interface NDIndexElement