Package org.nd4j.linalg.indexing
Class NDArrayIndexAll
- java.lang.Object
-
- org.nd4j.linalg.indexing.IntervalIndex
-
- org.nd4j.linalg.indexing.NDArrayIndexAll
-
- All Implemented Interfaces:
INDArrayIndex
public class NDArrayIndexAll extends IntervalIndex
Mainly meant for internal use: represents all the elements of a dimension- Author:
- Adam Gibson
-
-
Field Summary
-
Fields inherited from class org.nd4j.linalg.indexing.IntervalIndex
begin, end, inclusive, index, initialized, length, stride
-
-
Constructor Summary
Constructors Constructor Description NDArrayIndexAll()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description INDArrayIndexdup()Deep copy of thisINDArrayIndexvoidinit(INDArray arr, long begin, int dimension)Init the index wrt the dimension and the given nd arrayStringtoString()-
Methods inherited from class org.nd4j.linalg.indexing.IntervalIndex
end, equals, hashCode, init, init, init, initialized, isInterval, length, offset, reverse, stride
-
-
-
-
Method Detail
-
init
public void init(INDArray arr, long begin, int dimension)
Description copied from interface:INDArrayIndexInit the index wrt the dimension and the given nd array- Specified by:
initin interfaceINDArrayIndex- Overrides:
initin classIntervalIndex- Parameters:
arr- the array to initialize onbegin- the beginning indexdimension- the dimension to initialize on
-
dup
public INDArrayIndex dup()
Description copied from interface:INDArrayIndexDeep copy of thisINDArrayIndex- Specified by:
dupin interfaceINDArrayIndex- Overrides:
dupin classIntervalIndex- Returns:
-
toString
public String toString()
- Overrides:
toStringin classIntervalIndex
-
-