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

Combined Initialization and Assignment Functions

void mpff_init_set_ui(mpff_t r, mpff_field ff, unsigned long int x)
Initialize r as an element of the finite field ff, and set r to the finite field element defined by P. Currently x must be equal to P(2e) where e=mpz_size(p)*mp_bits_per_limb.
void mpff_init_set_z(mpff_t r, mpff_field ff, mpz_t x)
Initialize r as an element of the finite field ff, and set its value to x.
void mpff_init_unpack_z(mpff_t r, mpff_field ff, mpz_t x, mp_size_t e)
Initialize r as an element of the finite field ff, and set r to the finite field element defined by P, where P is defined by P(2e) = x and P has coefficients between 0 and 2e - 1.

Bill Allombert 2003-07-01