Hi,
let U be a square matrix of order m over Fq, more precisely U is the companion matrix of a monic irreducible polynomial over Fq that define Fqm .
let α be a primitive element of Fqm
I wish to declare this morphism to compute some examples with SAGEMATH
ψ: Fqm → Fq[U]
α ↦ & ψ(α)=U
thanks in advance;