"The set of mpq functions is quite small." Is this by design?

Anders Andersson pipatron at gmail.com
Sat Aug 11 04:57:20 UTC 2018


Hi! I tend to use the rational functions in GMP a lot, and quoting
from the documentation: The set of mpq functions is quite small.

I was wondering if this is by design or if the developers would
welcome an extension of the API to cover some more common cases that
I've found while using it?

I'm mostly missing arithmetic with native integers (think mpq_mul_ui)
and raw I/O functions. These are all trivial to implement but having
them in the API could perhaps enable some optimizations when it is
known that one operand is always small.


More information about the gmp-discuss mailing list