fq_embed_gens
#include <flint/fq_embed.h>void fq_embed_gens(fq_t gen_sub, fq_t gen_sup, fmpz_mod_poly_t minpoly, const fq_ctx_t sub_ctx, const fq_ctx_t sup_ctx)sourceGiven contexts for fields = sub_ctx of degree and = sup_ctx of degree with , computes a generator gen_sub of over , its minimal polynomial minpoly, and a root gen_sup of minpoly in . These data define the embedding that maps gen_sub to gen_sup.
For both generators are set to the generator of the prime field context ( for the defining polynomial ) and minpoly is not modified (it should be , which the caller must set before calling fq_embed_matrices); otherwise _fq_embed_gens_naive is called. Different roots give different embeddings, which differ by a power of the Frobenius map; the one returned is not in general compatible with the Conway polynomials of the two fields.
The FLINT team, “fq_embed_gens (fq_embed.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/fq_embed/fq_embed_gens.html (generated 2026-11-02).
@misc{flint-doc-fq-embed-fq-embed-gens,
author = {{The FLINT team}},
title = {{fq\_embed\_gens (fq\_embed.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/fq_embed/fq_embed_gens.html},
note = {Generated 2026-11-02}
}