-
-
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
switch BigFloat to MPFR & support MPC for complex bignums #2564
Comments
I'm in favor of this. There was some discussion of switching to MPFR in #1221. |
Yes, we should definitely do this. |
Also, IIRC, bigfloat in GMP is no longer supported. MPFR is certainly the right way to go. Bot, MPFR and MPC are LGPL, which is nice too. |
Nice! Once this is working, I'd prefer to have this replace
|
Thanks for the comments, @stevengj! Most of them have been implemented, and two issues were created to track some of them (special functions are on andrioni/MPFR.jl#1 and the rounding behavior is on andrioni/MPFR.jl#2). Some comments:
|
Great! Julia only throws an |
I think MPFR.jl is good enough to be packaged. It has more functions and utilities than |
You should make a pull request to replace BigFloat, instead of making a new package. |
Yes, this should go into Base. We also need to add MPFR and MPC to the build process in deps. |
I added MPFR to the build process in andrioni/julia@146901a and andrioni/julia@f9423dd and it built fine here yesterday. |
andrioni/julia@786749c adds MPC as a dep. If you want, I may send a pull request just for this or as a RFC for the MPFR/MPC integration. |
Yes, please make it a pull request to Base, and put RFC in the title of the request, so that people will review it. |
MPFR wrapper merged. |
Not only would switching to MPFR improve the floating-point semantics, it would also add a whole raft of special functions etcetera. And the MPC library would allow corresponding support for
Complex{BigFloat}
.The text was updated successfully, but these errors were encountered: