powered by
Selects rows idx along the first (sample) axis, keeping all other dimensions intact, regardless of how many dimensions the array has.
idx
slice_first_dim(x, idx)
x restricted to idx along dim 1 (drop = FALSE).
x
drop = FALSE
A matrix or array.
Integer indices into the first dimension.