public class NDIndexFixed extends java.lang.Object implements NDIndexElement
Constructor and Description |
---|
NDIndexFixed(long index)
Constructs a
NDIndexFixed instance with specified dimension. |
Modifier and Type | Method and Description |
---|---|
long |
getIndex()
Returns the dimension of the index.
|
int |
getRank()
Returns the number of dimensions occupied by this index element.
|
public NDIndexFixed(long index)
NDIndexFixed
instance with specified dimension.index
- the dimension of the NDArraypublic long getIndex()
public int getRank()
getRank
in interface NDIndexElement