fq_mat_charpoly
Synopsis
#include <flint/fq_poly.h>Sets p to the characteristic polynomial \det(xI - M) of the square matrix M; throws FLINT_ERROR if M is not square. This is a wrapper of gr_mat_charpoly, which uses the Berkowitz algorithm for n \le 12 and Danilevsky's algorithm otherwise (for fq_zech, from n = 5); see Characteristic and minimal polynomials.
Cite this page
The FLINT team, “fq_mat_charpoly (fq_poly.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/fq_poly/fq_mat_charpoly.html (generated 2026-10-20).
@misc{flint-doc-fq-poly-fq-mat-charpoly,
author = {{The FLINT team}},
title = {{fq\_mat\_charpoly (fq\_poly.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/fq_poly/fq_mat_charpoly.html},
note = {Generated 2026-10-20}
}