_gr_mat_companion, gr_mat_companion
Synopsis
#include <flint/gr_mat.h>Sets the n \times n matrix res to the companion matrix of a polynomial of degree n, whose characteristic polynomial is the monic associate of the polynomial. The leading coefficient must be invertible (not checked). The underscore version reads n + 1 coefficients.
Cite this page
The FLINT team, “_gr_mat_companion, gr_mat_companion (gr_mat.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/gr_mat/_gr_mat_companion.html (generated 2026-10-20).
@misc{flint-doc-gr-mat-gr-mat-companion,
author = {{The FLINT team}},
title = {{\_gr\_mat\_companion, gr\_mat\_companion (gr\_mat.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/gr_mat/_gr_mat_companion.html},
note = {Generated 2026-10-20}
}