-
Notifications
You must be signed in to change notification settings - Fork 348
Closed
Labels
Description
Not sure if there is an equivalent way to sort an array by another, but numpy has take as a convenience function:
https://numpy.org/doc/stable/reference/generated/numpy.take.html
While ndarray has slice and to_slice methods, I don't think these are round-trippable the same way that take would be, since to_slice returns a primitive slice whereas slice looks for a SliceArg argument