-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix implementation of minimum and maximum
This addresses some of the issues discussed in JuliaLang/julia#45932. For Julia 1.8.0 it completely fixes minimum and maximum, for earlier versions of Julia it only partially fixes some of the issues. The change completely removes the specialised implementation of extrema. It also completely removes the specialised implementation of minimum and maximum for Mag and Arf. The default implementations work well, though are slower due to more allocations. In the future it could maybe be an option to have a faster version using MutableArithmetics.jl. The Base implementation of minimum and maximum is fixed for Arb by overloading Base._fast to make it correct for Arb. Before 1.8.0 this is not enough to fix all problems and it thus keeps the specialised implementation for Julia before 1.8.0-rc3 (latest release candidate as of writing), for later versions the specialised implementation can be removed.
- Loading branch information
1 parent
f6a07c3
commit 5e81504
Showing
3 changed files
with
145 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters