next up previous
Next: Assignment Functions Up: mpff class functions Previous: mpff class functions

Initialization Functions

void mpff_clear(mpff_t r)
Free the space occupied by r. Call this function for all `mpff_t' variables when you are done with them.
void mpff_field_clear(mpff_field ff)
Free the space occupied by ff. This invalidate all `mpff_t' variables that reference ff.
void mpff_field_init(mpff_field ff, mpz_t p, mpz_t pol)
Initialize ff as the finite field $ \mathbb {F}$p[X]/(P). Currently pol must be equal to P(2e) and P has coefficients between 0 and 2e - 1 where e=mpz_size(p)*mp_bits_per_limb. The current implementation require P to be monic.
Use mpff_field_init_unpack instead.
void mpff_field_init_unpack(mpff_field ff, mpz_t p, mpz_t pol, mp_size_t e)
Initialize ff as the finite field $ \mathbb {F}$p[X]/(P) where P is defined by P(2e) = x and P has coefficients between 0 and 2e - 1. The current implementation require P to be monic.
void mpff_init(mpff_t r, mpff_field ff)
Initialize r as an element of the finite field ff, and set its value to 0.

Bill Allombert 2003-07-01