mpz_t C++ wrapper

Roberto Bagnara bagnara at
Thu May 1 14:36:37 CEST 2008

Heiko Wundram wrote:
> but if there's any code base 
> out there using mpz_class extensively (or someone knows of one they can point 
> me at; Google isn't especially helpful here), I'd happily give any interested 
> party access to the source so that they can test how/if my reimplementation 
> fares better for them.

The Parma Polyhedra Library uses mpz_class extensively.  However, care has
been taken to minimize the creation of temporaries.  Still, I think it would
constitute a good benchmark for your code.
All the best,


Prof. Roberto Bagnara
Computer Science Group
Department of Mathematics, University of Parma, Italy
mailto:bagnara at

More information about the gmp-discuss mailing list