We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
These are available (for argsort maybe for a single axis) in the numpy public C-API:
https://numpy.org/devdocs/reference/c-api/array.html#c.PyArray_Sort
https://numpy.org/devdocs/reference/c-api/array.html#c.PyArray_ArgSort
Using it for our own ops should be simpler than the already simple SearchSorted implementation:
pytensor/pytensor/tensor/signal/conv.py
Lines 68 to 71 in afb7695
Sort may act inplace, so we can add an inplace version of the Sort op as well (and be sure to copy when not enabled)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description
These are available (for argsort maybe for a single axis) in the numpy public C-API:
https://numpy.org/devdocs/reference/c-api/array.html#c.PyArray_Sort
https://numpy.org/devdocs/reference/c-api/array.html#c.PyArray_ArgSort
Using it for our own ops should be simpler than the already simple SearchSorted implementation:
pytensor/pytensor/tensor/signal/conv.py
Lines 68 to 71 in afb7695
Sort may act inplace, so we can add an inplace version of the Sort op as well (and be sure to copy when not enabled)
The text was updated successfully, but these errors were encountered: