-
-
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
Add 2-arg versions of findmax/min, argmax/min #35316
Add 2-arg versions of findmax/min, argmax/min #35316
Commits on Dec 17, 2020
-
Configuration menu - View commit details
-
Copy full SHA for a928f4a - Browse repository at this point
Copy the full SHA a928f4aView commit details -
Defines a descending total order where unorderable values and missing are last. This makes defining min, argmin, etc, simpler.
Configuration menu - View commit details
-
Copy full SHA for b2f1111 - Browse repository at this point
Copy the full SHA b2f1111View commit details -
Add 2-arg versions of findmax/min, argmax/min
Fixes JuliaLang#27613. Related: JuliaLang#27639, JuliaLang#27612, JuliaLang#34674. Thanks to @tkf, @StefanKarpinski and @drewrobson for their assistance with this PR.
Configuration menu - View commit details
-
Copy full SHA for 8767109 - Browse repository at this point
Copy the full SHA 8767109View commit details -
Configuration menu - View commit details
-
Copy full SHA for 72c459d - Browse repository at this point
Copy the full SHA 72c459dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1eb223b - Browse repository at this point
Copy the full SHA 1eb223bView commit details -
Configuration menu - View commit details
-
Copy full SHA for fc0dbab - Browse repository at this point
Copy the full SHA fc0dbabView commit details -
- Explicitly cache `x == x` to save the compiler some work. - Rename _is_unorderable to !_is_reflexive.
Configuration menu - View commit details
-
Copy full SHA for 9231741 - Browse repository at this point
Copy the full SHA 9231741View commit details -
Simplify _is_reflexive and rename _is_reflexive_eq
Co-authored-by: Jameson Nash <jameson@juliacomputing.com>
Configuration menu - View commit details
-
Copy full SHA for 4a85179 - Browse repository at this point
Copy the full SHA 4a85179View commit details -
Configuration menu - View commit details
-
Copy full SHA for 31a38a0 - Browse repository at this point
Copy the full SHA 31a38a0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6cc600e - Browse repository at this point
Copy the full SHA 6cc600eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4c6923a - Browse repository at this point
Copy the full SHA 4c6923aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7c7cfbe - Browse repository at this point
Copy the full SHA 7c7cfbeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8356986 - Browse repository at this point
Copy the full SHA 8356986View commit details -
Co-authored-by: Takafumi Arakaki <takafumi.a@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 8061ce8 - Browse repository at this point
Copy the full SHA 8061ce8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 96433cf - Browse repository at this point
Copy the full SHA 96433cfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 91a825f - Browse repository at this point
Copy the full SHA 91a825fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 51c1d07 - Browse repository at this point
Copy the full SHA 51c1d07View commit details -
It's about as fast as working on indexes for arrays, and should be faster for other collections. Thanks again to @tkf.
Configuration menu - View commit details
-
Copy full SHA for f3dac8c - Browse repository at this point
Copy the full SHA f3dac8cView commit details -
Make findmax(A; dims) consistent with findmax(A) again
findmax(A; dims) and friends can handle `missing` now, too.
Configuration menu - View commit details
-
Copy full SHA for 9ed02b2 - Browse repository at this point
Copy the full SHA 9ed02b2View commit details -
Configuration menu - View commit details
-
Copy full SHA for fae5eac - Browse repository at this point
Copy the full SHA fae5eacView commit details -
Thanks @nalimilan for the suggestion. This is simpler, more extensible and should handle larger unions.
Configuration menu - View commit details
-
Copy full SHA for 3671795 - Browse repository at this point
Copy the full SHA 3671795View commit details -
Support missing better in minimum(A; dims)
convert(T, Inf) fails for lots of T (e.g. Int).
Configuration menu - View commit details
-
Copy full SHA for 202edf7 - Browse repository at this point
Copy the full SHA 202edf7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7aa7fdb - Browse repository at this point
Copy the full SHA 7aa7fdbView commit details -
Configuration menu - View commit details
-
Copy full SHA for c8f05bb - Browse repository at this point
Copy the full SHA c8f05bbView commit details -
Configuration menu - View commit details
-
Copy full SHA for abf1be4 - Browse repository at this point
Copy the full SHA abf1be4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 925a365 - Browse repository at this point
Copy the full SHA 925a365View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5e93247 - Browse repository at this point
Copy the full SHA 5e93247View commit details -
Configuration menu - View commit details
-
Copy full SHA for b2fe843 - Browse repository at this point
Copy the full SHA b2fe843View commit details
Commits on Dec 18, 2020
-
Fix minimum(A; dims) when eltype(A) doesn't define typemin, but does …
…accept Inf This used to work, so it would be a regression to break it.
Configuration menu - View commit details
-
Copy full SHA for 6232810 - Browse repository at this point
Copy the full SHA 6232810View commit details