fq_embed_matrices
Synopsis
#include <flint/fq_embed.h>void fq_embed_matrices(fmpz_mod_mat_t embed, fmpz_mod_mat_t project, const fq_t gen_sub, const fq_ctx_t sub_ctx, const fq_t gen_sup, const fq_ctx_t sup_ctx, const fmpz_mod_poly_t gen_minpoly)sourceGiven the output of fq_embed_gens for fields = sub_ctx and = sup_ctx of degrees , computes the matrix embed of the embedding that maps gen_sub to gen_sup, and an matrix project of a -linear projection with , so that is the identity. The matrices act on column vectors of coordinates in the monomial bases.
The projection is for an element with : if , and otherwise for a suitable power of the generator. The trace is computed with fq_embed_trace_matrix.
Cite this page
The FLINT team, “fq_embed_matrices (fq_embed.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/fq_embed/fq_embed_matrices.html (generated 2026-11-02).
@misc{flint-doc-fq-embed-fq-embed-matrices,
author = {{The FLINT team}},
title = {{fq\_embed\_matrices (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_matrices.html},
note = {Generated 2026-11-02}
}