Ciao Vincent,

Il Sab, 15 Agosto 2015 12:37 pm, Vincent Delecroix ha scritto:
> Dear all,
>
> I am new to this list. I am a regular developer of the SageMath project
> [1] in which we use mpz_t and mpq_t as our based type for integers and
> rationals. We often have to compare integers with rationals and I came
> to the conclusion that it would be convenient to have a GMP function
>
>     int mpq_cmp_z(mpq_t, mpz_t)

We now have this function in our repository:

https://gmplib.org/repo/gmp/rev/c95f8df2b57e

It shares most of the code with the already existing mpq_cmp function. If
you have the possibility to test if it fits your needs (both on the speed
side and for the interface) we will be happy to know.

I hope its name will not be changed before the official release, but be
warned, it is not official yet.

Best regards,
m

PS: I'm not very happy for the testing code... too general to finely
explore the corner cases for the size-based branches...

-- 
http://bodrato.it/papers/

_______________________________________________
gmp-devel mailing list
gmp-devel@gmplib.org
https://gmplib.org/mailman/listinfo/gmp-devel

Reply via email to