public interface INDArrayIndex
Modifier and Type | Method and Description |
---|---|
long |
end()
The ending for this index
|
void |
init(INDArray arr,
int dimension)
Init the index wrt
the dimension and the given nd array
|
void |
init(INDArray arr,
long begin,
int dimension)
Init the index wrt
the dimension and the given nd array
|
void |
init(long begin,
long end)
Initiailize based on the specified begin and end
|
void |
init(long begin,
long end,
long max) |
boolean |
isInterval()
Returns true
if the index is an interval
|
long |
length()
The total length of this index (end - start)
|
long |
offset()
The start of this index
|
void |
reverse()
Reverse the indexes
|
long |
stride()
The stride for the index (most of the time will be 1)
|
long end()
long offset()
long length()
long stride()
void reverse()
boolean isInterval()
void init(INDArray arr, long begin, int dimension)
arr
- the array to initialize onbegin
- the beginning indexdimension
- the dimension to initialize onvoid init(INDArray arr, int dimension)
arr
- the array to initialize ondimension
- the dimension to initialize onvoid init(long begin, long end, long max)
void init(long begin, long end)
begin
- end
- Copyright © 2019. All rights reserved.