Skip to content
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

[FEA] Add argsort function #700

Open
HugoPhibbs opened this issue Aug 8, 2024 · 0 comments
Open

[FEA] Add argsort function #700

HugoPhibbs opened this issue Aug 8, 2024 · 0 comments

Comments

@HugoPhibbs
Copy link
Contributor

HugoPhibbs commented Aug 8, 2024

Is your feature request related to a problem? Please describe.
Wanting to sort a tensor by it's indices. This is a rather vital feature for my project

Describe the solution you'd like
A function to sort a tensor along rows (or a given dimension) interms of indices. Should work identical to numpys argsort

Would look like:

(sorted_indices = matx::argsort(tensor_in, SORT_DIR_ASC)).run();

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

I've looked in docs and couldn't find anything

Additional context
Add any other context or screenshots about the feature request here.

None

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant