FLINT3.7.0-dev

fq_mat_minpoly

Synopsis#include <flint/fq_poly.h>
void fq_mat_minpoly(fq_poly_t p, const fq_mat_t X, const fq_ctx_t ctx)

Sets p to the minimal polynomial of the square matrix X, the monic polynomial of least degree with p(X) = 0; throws FLINT_ERROR if X is not square. This is a wrapper of gr_mat_minpoly_field.

Cite this page

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