in reply to Re: Converting Math::MPFR to Math::GMPq
in thread Converting Math::MPFR to Math::GMPq

Thank you very much, Rob, for your reply and also for the Math::* modules.

Definitely, would be nice to avoid the overhead of loading Math::GMPf, as I'm using it only in one place to do this particular conversion, but, nevertheless, I can live with that. :)

All the best,
Daniel

  • Comment on Re^2: Converting Math::MPFR to Math::GMPq

Replies are listed 'Best First'.
Re^3: Converting Math::MPFR to Math::GMPq
by syphilis (Archbishop) on Dec 29, 2015 at 01:46 UTC
    would be nice to avoid the overhead of loading Math::GMPf

    Thinking a bit more about it, it's no big deal to include an Rmpfr_get_q() XSub in Math::MPFR that does the mpfr_t to mpf_t to mpq_t conversion, and thereby avoids the need to load Math::GMPf.

    That function will be in the next release of Math::MPFR.
    I'm not sure when that will be - I could send you a patch against current (Math-MPFR-3.28) if you don't want to wait for 3.29.

    Cheers,
    Rob

      That's awesome. Thank you very much, Rob. I'm looking forward to the next version.

      All the best,
      Daniel