Andreas Enge on Mon, 19 Jun 2023 10:09:28 +0200


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: void mpz_set_GEN(mpz_ptr z, GEN x) and GEN mpz_get_GEN(mpz_srcptr z)


Hello,

Am Mon, Jun 19, 2023 at 12:57:20AM +0200 schrieb hermann@stamm-wilbrandt.de:
> I did need to convert between t_INT GEN and libgmpxx mpz_t in both
> directions.

you may be interested in the PariTwine project:
   https://www.multiprecision.org/paritwine/home.html
which provides a link to GMP, but also MPFR, MPC, FLINT/ARB and CMH.
There are conversion functions and helpers to call functions of the
other libraries from GP scripts.

Andreas