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
argsort
mergesort
We must ensure that the numpy.argsort gives deterministic results, as well as in https://github.com/XENONnT/straxen.
numpy.argsort
This issue is closely related to XENONnT/straxen#1176.
The text was updated successfully, but these errors were encountered:
I checked the source code of numpy and confirmed that argsort is a more fundamental method while sort is a higher-level API based on it. The algorithms are defined in cpp files like https://github.com/numpy/numpy/blob/main/numpy/_core/src/npysort/mergesort.cpp
numpy
sort
With the mergesort method, the relative order is preserved: https://github.com/numpy/numpy/blob/020e78cc3a4c7283bbe83290f0be5de3bc842f07/numpy/_core/src/npysort/mergesort.cpp#L67
So as long as we use mergesort I think we are good here.
Sorry, something went wrong.
Yes! So would you please check whether we always use mergesort?
np.sort
np.argsort
yuema137
No branches or pull requests
We must ensure that the
numpy.argsort
gives deterministic results, as well as in https://github.com/XENONnT/straxen.This issue is closely related to XENONnT/straxen#1176.
The text was updated successfully, but these errors were encountered: