[C++] odd method for mpz_class ?

Kevin Ryde user42@zip.com.au
Thu, 26 Dec 2002 06:44:26 +1000


"Christian P. MOMON" <cp.momon@ocmland.org> writes:
>
>   mpz_t has the "int mpz_odd_p (mpz_t op)" function.
>
>   What is the method for the mpz_class ?

There isn't one currently.  Have to lobby Gerardo to make one.  Until
then you can use get_mpz_t() as described in the manual.

>   Same for even, size, sizeinbase ?

Ditto.

Except you probably don't want to use mpz_size, it's not really good
for much.