next up previous
Next: Assignment Functions Up: mpffn class functions Previous: Elements storage

Initialization Functions

void mpffn_field_clear(mpffn_field *ff)
Free the data structure ff .
void mpffn_field_init(mpffn_field *ff, mp_ptr p, mp_size_t size_p, 
        mp_srcptr pol, mp_size_t size_pol, 
        mp_ptr (*ff_alloc)(mp_size_t l),
        void (*ff_free)(mp_ptr r,mp_size_t l))
Initialize the data structure ff to the finite field of characteristic {p, size$ \_p$} defined by the polynomial {pol, size$ \_pol$}. You can pass NULL for ff_alloc() and ff_free() to use the default memory allocation functions. Else
void mpffn_field_init_unpack(mpffn_field *ff, mp_ptr p, mp_size_t
size_p, mp_srcptr pol, mp_size_t packet_number, mp_size_t packet_size, mp_ptr
(*ff_alloc)(mp_size_t l), void (*ff_free)(mp_ptr r,mp_size_t l))
Initialize the data structure ff to the finite field of characteristic {p, size$ \_p$} defined by the polynomial {pol, packet$ \_number$, packet$ \_size$}. You can pass NULL for ff_alloc() and ff_free() to use the default memory allocation functions. Else

Bill Allombert 2003-07-01