-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
make findmin/findmax behavior match min/max #23209
Comments
My idea would be to remove the special treatment of |
What behavior are you proposing then? Treating |
In the case, the collection contains any Compromise: default behaviour stay as it is, introduce a new flag, which allows to return NaN. I saw, that in Octave, the |
We're still pre-1.0 which means some breakage is expected and acceptable. Since switching from not getting a |
So I will change:
and same for |
Yes, exactly. Thank you for tackling this – it's greatly appreciated. |
I am nearly through with the reducedim -case. But found 2 additional inconsistencies.
The index is improperly set to zero. (Actually I have the impression it is uninitialized memory)
I want to fix both cases by 2 measures:
|
Great, I'm glad you're kicking the tires on this – I suspect it hasn't been touched in some time. It seems that initializing with the first slice would address both problems at the same time, no? If there is no first slice, then it should fallback to whatever |
In principle, yes. I could not yet figure out, how to do that, though. I will try it out for the |
But throwing the same exception as |
Fixed by #23227 |
See #23155. These should be made to match and documentation updated accordingly.
The text was updated successfully, but these errors were encountered: