FLINT3.7.0-dev

fq_zech_ctx_init_randtest, fq_zech_ctx_init_randtest_reducible

Synopsis#include <flint/fq_zech.h>
void fq_zech_ctx_init_randtest(fq_zech_ctx_t ctx, flint_rand_t state, int type)source
void fq_zech_ctx_init_randtest_reducible(fq_zech_ctx_t ctx, flint_rand_t state, int type)source

Initialise ctx as a random field for testing, with a random primitive modulus: primes of up to 5 bits for type 0 and 1, of up to 4 bits for 2 and 3, and degree at most 4 for even and 3 for odd type. The reducible version is the same, since a Zech context needs an irreducible (indeed primitive) modulus.

Cite this page

The FLINT team, “fq_zech_ctx_init_randtest, fq_zech_ctx_init_randtest_reducible (fq_zech.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/fq_zech/fq_zech_ctx_init_randtest.html (generated 2026-10-20).