[ << ]  [ < ]  [ Up ]  [ > ]  [ >> ]  [Top]  [Contents]  [Index]  [ ? ] 
3.3 Function Classes
There are six classes of functions in the GMP library:

Functions for signed integer arithmetic, with names beginning with
mpz_
. The associated type ismpz_t
. There are about 150 functions in this class. (see section Integer Functions) 
Functions for rational number arithmetic, with names beginning with
mpq_
. The associated type ismpq_t
. There are about 40 functions in this class, but the integer functions can be used for arithmetic on the numerator and denominator separately. (see section Rational Number Functions) 
Functions for floatingpoint arithmetic, with names beginning with
mpf_
. The associated type ismpf_t
. There are about 60 functions is this class. (see section Floatingpoint Functions) 
Functions compatible with Berkeley MP, such as
itom
,madd
, andmult
. The associated type isMINT
. (see section Berkeley MP Compatible Functions) 
Fast lowlevel functions that operate on natural numbers. These are used by
the functions in the preceding groups, and you can also call them directly
from very timecritical user programs. These functions’ names begin with
mpn_
. The associated type is array ofmp_limb_t
. There are about 30 (hardtouse) functions in this class. (see section Lowlevel Functions)  Miscellaneous functions. Functions for setting up custom allocation and functions for generating random numbers. (see section Custom Allocation, and see section Random Number Functions)
[ << ]  [ < ]  [ Up ]  [ > ]  [ >> ]  [Top]  [Contents]  [Index]  [ ? ] 
This document was generated on February 16, 2012 using texi2html 5.0.