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