public class PointIndex extends Object implements INDArrayIndex
| Constructor and Description |
|---|
PointIndex(int point) |
| Modifier and Type | Method and Description |
|---|---|
int |
current()
Return the current index
without incrementing the counter
|
int |
end()
The ending for this index
|
boolean |
equals(Object o) |
int |
hashCode() |
boolean |
hasNext()
Returns true if there is another element
in the index to iterate over
otherwise false
|
void |
init(INDArray arr,
int dimension)
Init the index wrt
the dimension and the given nd array
|
void |
init(INDArray arr,
int begin,
int dimension)
Init the index wrt
the dimension and the given nd array
|
void |
init(int begin,
int end)
Initiailize based on the specified begin and end
|
boolean |
isInterval()
Returns true
if the index is an interval
|
int |
length()
The total length of this index (end - start)
|
int |
next()
Returns the next index
|
int |
offset()
The start of this index
|
void |
reset() |
void |
reverse()
Reverse the indexes
|
void |
setInterval(boolean isInterval) |
int |
stride()
The stride for the index (most of the time will be 1)
|
public int end()
INDArrayIndexend in interface INDArrayIndexpublic int offset()
INDArrayIndexoffset in interface INDArrayIndexpublic int length()
INDArrayIndexlength in interface INDArrayIndexpublic int stride()
INDArrayIndexstride in interface INDArrayIndexpublic int current()
INDArrayIndexcurrent in interface INDArrayIndexpublic boolean hasNext()
INDArrayIndexhasNext in interface INDArrayIndexpublic int next()
INDArrayIndexnext in interface INDArrayIndexpublic void reverse()
INDArrayIndexreverse in interface INDArrayIndexpublic boolean isInterval()
INDArrayIndexisInterval in interface INDArrayIndexpublic void setInterval(boolean isInterval)
setInterval in interface INDArrayIndexpublic void init(INDArray arr, int begin, int dimension)
INDArrayIndexinit in interface INDArrayIndexarr - the array to initialize onbegin - the beginning indexdimension - the dimension to initialize onpublic void init(INDArray arr, int dimension)
INDArrayIndexinit in interface INDArrayIndexarr - the array to initialize ondimension - the dimension to initialize onpublic void init(int begin,
int end)
INDArrayIndexinit in interface INDArrayIndexpublic void reset()
reset in interface INDArrayIndexCopyright © 2016. All Rights Reserved.