-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
array sorting by dimension #2484
Comments
this is a beautifully general function. we can use it for #2484 and similar missing functions. it is also a really good function to focus on optimizing, and for honing things like indexing behavior.
Should we implement this with the API described above, now that we have |
|
Both of those functions are useful; here we just wanted the equivalent of matlab's |
The sorting API provides a way to get the desired permutation of the rows/columns, by specifying a comparison function. |
I'm looking for a way to sort columns in-place, but there doesn't seem to be a |
Matlab provides:
I believe we used to have these at some point. It would be nice to have sorting work on arrays. The API issue about operating on dimensions is already being discussed in #2265, and sort should also used whatever is concluded there.
The text was updated successfully, but these errors were encountered: