_nmod_mat_charpoly_berkowitz
Synopsis
#include <flint/nmod_mat.h>void _nmod_mat_charpoly_berkowitz(nn_ptr p, const nmod_mat_t M, nmod_t mod)sourceWrites the r + 1 coefficients of the characteristic polynomial of the r \times r matrix M to p, by Berkowitz's algorithm. Works for any modulus.
Cite this page
The FLINT team, “_nmod_mat_charpoly_berkowitz (nmod_mat.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/nmod_mat/_nmod_mat_charpoly_berkowitz.html (generated 2026-10-20).
@misc{flint-doc-nmod-mat-nmod-mat-charpoly-berkowitz,
author = {{The FLINT team}},
title = {{\_nmod\_mat\_charpoly\_berkowitz (nmod\_mat.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/nmod_mat/_nmod_mat_charpoly_berkowitz.html},
note = {Generated 2026-10-20}
}