Package ai.djl.ndarray.index.full
Class NDIndexFullTake
java.lang.Object
ai.djl.ndarray.index.full.NDIndexFullTake
A simplified representation of a take-based
NDIndex.-
Method Summary
Modifier and TypeMethodDescriptionstatic Optional<NDIndexFullTake>Returns (if possible) theNDIndexFullTakerepresentation of anNDIndex.intgetAxis()Returns the axis to take.Returns the indices to take.
-
Method Details
-
fromIndex
Returns (if possible) theNDIndexFullTakerepresentation of anNDIndex.- Parameters:
index- the index to representtarget- the shape of the array to index- Returns:
- the full take representation or nothing if it can't represent the index
-
getIndices
Returns the indices to take.- Returns:
- the indices to take
-
getAxis
public int getAxis()Returns the axis to take.- Returns:
- the axis to take
-