FLINT3.7.0-dev

_acb_mat_companion, acb_mat_companion

Synopsis#include <flint/acb_mat.h>
void _acb_mat_companion(acb_mat_t mat, acb_srcptr poly, slong prec)source
void acb_mat_companion(acb_mat_t mat, const acb_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, “_acb_mat_companion, acb_mat_companion (acb_mat.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/acb_mat/_acb_mat_companion.html (generated 2026-10-20).