FLINT3.7.0-dev

fq_nmod_embed_composition_matrix, fq_nmod_embed_composition_matrix_sub

Synopsis#include <flint/fq_nmod_embed.h>
void fq_nmod_embed_composition_matrix(nmod_mat_t matrix, const fq_nmod_t gen, const fq_nmod_ctx_t ctx)
void fq_nmod_embed_composition_matrix_sub(nmod_mat_t matrix, const fq_nmod_t gen, const fq_nmod_ctx_t ctx, slong trunc)

Set matrix to the composition matrix of the element a = gen of a field of degree d: the d \times d matrix whose columns are the coordinates of a^0, a^1, \ldots, a^{d-1}, which maps the coordinates of a polynomial g of degree less than d to those of g(a). The _sub version computes only the first trunc \le d columns, into a d \times \mathit{trunc} matrix.

Generated from the same template as fq_embed_composition_matrix, whose documentation has the details.

Cite this page

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