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
It seems as argsort has a bug for dimension 3 arrays in an specific order.
For instance if I wrote
import numpy as np
np.argsort(array([2,3,1])
The returned value is: array([2, 0, 1])
If I change the order of the numbers (i.e. [1,2,3]) the function works well.
I have cross checked the malfunction in python 2.7.6 with numpy 1.8.2 and python 3.5.2 with numpy version 1.11.1 both in windows and linux.
The text was updated successfully, but these errors were encountered:
And why do you expect something else? Seems like the right answer to me:
In [5]: np.array([2,3,1])[np.argsort(np.array([2,3,1]))] Out[5]: array([1, 2, 3]) In [6]: np.argsort(np.array([2,3,1])) Out[6]: array([2, 0, 1])
EDIT: Copied the second thing wrong, fixed
Sorry, something went wrong.
'got it. Sorry. I misanderstood the help documentation.
Duplicate of #8757
No branches or pull requests
It seems as argsort has a bug for dimension 3 arrays in an specific order.
For instance if I wrote
import numpy as np
np.argsort(array([2,3,1])
The returned value is:
array([2, 0, 1])
If I change the order of the numbers (i.e. [1,2,3]) the function works well.
I have cross checked the malfunction in python 2.7.6 with numpy 1.8.2 and python 3.5.2 with numpy version 1.11.1 both in windows and linux.
The text was updated successfully, but these errors were encountered: