FLINT3.7.0-dev

_arb_mat_companion, arb_mat_companion

Synopsis#include <flint/arb_mat.h>
void _arb_mat_companion(arb_mat_t mat, arb_srcptr poly, slong prec)source
void arb_mat_companion(arb_mat_t mat, const arb_poly_t poly, slong prec)source

Set the n \times n matrix mat to the companion matrix of the polynomial of degree n (the underscore version reads n + 1 coefficients). If the leading coefficient cannot be inverted, the result is indeterminate. Wrappers of _gr_mat_companion and gr_mat_companion.

Cite this page

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