fq_ctx_init_conway, fq_ctx_init_conway_ui, _fq_ctx_init_conway, _fq_ctx_init_conway_ui
#include <flint/fq.h>Initialise ctx as a context for \mathbb{F}_{p^d} defined by the Conway polynomial for (p, d). The functions without an underscore throw FLINT_ERROR if the polynomial is not in FLINT's table. The functions with an underscore return 1 on success and 0, leaving ctx uninitialised, if the polynomial is not in the table.
A Conway polynomial is primitive, so its root, the generator returned by fq_gen, generates the multiplicative group. Conway polynomials for \mathbb{F}_{p^m} and \mathbb{F}_{p^n} with m \mid n are compatible: x^{(p^n - 1)/(p^m - 1)} in the larger field is a root of the polynomial for the smaller one. The two functions with an underscore do not set the flag is_conway of the context (it only affects how fq_sqrt finds a non-square); the other two do.
The FLINT team, “fq_ctx_init_conway, fq_ctx_init_conway_ui, _fq_ctx_init_conway, _fq_ctx_init_conway_ui (fq.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/fq/fq_ctx_init_conway.html (generated 2026-10-20).
@misc{flint-doc-fq-fq-ctx-init-conway,
author = {{The FLINT team}},
title = {{fq\_ctx\_init\_conway, fq\_ctx\_init\_conway\_ui, \_fq\_ctx\_init\_conway, \_fq\_ctx\_init\_conway\_ui (fq.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/fq/fq_ctx_init_conway.html},
note = {Generated 2026-10-20}
}