FLINT3.7.0-dev

ca_mat_companion

Synopsis#include <flint/ca_mat.h>
int ca_mat_companion(ca_mat_t A, const ca_poly_t poly, ca_ctx_t ctx)source

Sets A to the companion matrix of poly and returns 1, or returns 0 if the leading coefficient of poly is not proved nonzero or A does not have size \deg(\mathit{poly}). Wrapper of gr_mat_companion.

Cite this page

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