FLINT3.7.0-dev

_ca_mat_ca_poly_evaluate, ca_mat_ca_poly_evaluate

Synopsis#include <flint/ca_mat.h>
void _ca_mat_ca_poly_evaluate(ca_mat_t y, ca_srcptr poly, slong len, const ca_mat_t x, ca_ctx_t ctx)source
void ca_mat_ca_poly_evaluate(ca_mat_t res, const ca_poly_t f, const ca_mat_t a, ca_ctx_t ctx)source

Sets the output to f(A) for the polynomial f (given as an array of len coefficients for the underscore version) and the square matrix A, using the Paterson–Stockmeyer algorithm, which needs about 2\sqrt{n} matrix multiplications for a polynomial of degree n. Wrappers of _gr_mat_gr_poly_evaluate.

Cite this page

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