FLINT3.7.0-dev

fq_nmod_embed_trace_matrix

Synopsis#include <flint/fq_nmod_embed.h>
void fq_nmod_embed_trace_matrix(nmod_mat_t res, const nmod_mat_t basis, const fq_nmod_ctx_t sub_ctx, const fq_nmod_ctx_t sup_ctx)

Given contexts for k = sub_ctx and K = sup_ctx of degrees m \mid n and the n \times m matrix basis of an embedding \varphi: k \to K, sets res to the m \times n matrix of the map y \mapsto \varphi^{-1}(\operatorname{Tr}_{K/\varphi(k)}(y)). It is computed as D_k \cdot \mathit{basis}^T \cdot M_K, with D_k = fq_nmod_embed_dual_to_mono_matrix for k and M_K = fq_nmod_embed_mono_to_dual_matrix for K. For m = n the result is the inverse of basis.

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

Cite this page

The FLINT team, “fq_nmod_embed_trace_matrix (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_trace_matrix.html (generated 2026-10-20).