Gather elements from an mlx array
mlx_gather.RdMirrors mlx.core.gather(),
selecting elements according to index tensors along the specified axes. The
current implementation supports gathering along a single axis at a time.
Arguments
- x
- An mlx array. 
- indices
- List of index tensors. Each element can be a numeric/logical vector, array, or an - mlxarray of integer type. Shapes must broadcast to a common result.
- axes
- Integer vector of axes (1-indexed, negatives count from the end) corresponding to - indices. Defaults to the first- length(indices)axes.