-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
Fix up Nan handling for max/amax/argmax/fmac + min/sort equivalent (Trac #1035) #1633
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
Comments
Milestone changed to |
@charris wrote on 2010-01-05 I think this ticket is pretty much done. sorts: sort/argsort - sorts nans to end max/min: max, amax, min, amin - propagate nans max/argmax, min/argmin have incompatible behaviour, this needs a decision. |
@charris wrote on 2010-01-05 Reformat
max/argmax, min/argmin have incompatible behaviour, this needs a decision. |
@rgommers wrote on 2010-07-18 The priority of this is set as blocker, considering Charles comments I'm assuming that's no longer the case? |
@pv wrote on 2010-07-18 Let's try to nevertheless address the comparison-related issues for 1.5.0. The argmin and argmax behavior should be harmonized by r8509, they now propagate nans. The previous behavior was actually undefined (cf. #2027), not non-propagating, so I think we can just change it as any code relying on the previous behavior is invalid.
The last question is what should be done with complex nans. I think they should be defined as
I didn't check if I changed the comparison operations to treat cnans according to the above way in r8508, since I don't think it makes sense for us to have
This change also fixes a bug where maximum/minimum were not propagating complex nans properly. |
Milestone changed to |
@charris wrote on 2010-07-18 Sorts and searchsorted don't handle cnans that way. They use the following comparison:
So that (z,z), (z, nan), (nan, z), (nan, nan) are in order. See the release notes for 1.4.0. |
@mwiebe wrote on 2011-03-24 This looks like it's been dealt with. |
Milestone changed to |
Milestone changed to |
Original ticket http://projects.scipy.org/numpy/ticket/1035 on 2009-03-03 by @cournape, assigned to @cournape.
This is a meta issue:
Extensive discussions on the ML:
http://mail.scipy.org/pipermail/numpy-discussion/2008-September/037413.html
Also some other issues:
#1518, #1484, #1307, #1392,
The text was updated successfully, but these errors were encountered: