Previous: mpfr exceptions, Up: mpfr


D.14.10 Additional mpfr notes

The eq and urandomb functions depend not only on the mpfr library but on the gmp library (http://ftp.gnu.org/gnu/gmp). It's possible for them to be unavailable on a host without gmp even if the rest of the mpfr library is properly configured.

The file mpfr.c in the avram source tree exports a couple of functions that may be of use to C hackers interested in further development of avram with mpfr. The functions avm_mpfr_of_list and avm_list_of_mpfr convert between the native representation for mpfr numbers and the caching list representation used by avram (Type Conversions). This conversion is non-trivial because the numbers are not stored contiguously.