FLINT3.7.0-dev

_gr_poly_evaluate_other, gr_poly_evaluate_other, _gr_poly_evaluate_other_horner, gr_poly_evaluate_other_horner, _gr_poly_evaluate_other_rectangular, gr_poly_evaluate_other_rectangular

Synopsis#include <flint/gr_poly.h>
int _gr_poly_evaluate_other(gr_ptr res, gr_srcptr f, slong len, const gr_srcptr x, gr_ctx_t x_ctx, gr_ctx_t ctx)source
int gr_poly_evaluate_other(gr_ptr res, const gr_poly_t f, gr_srcptr x, gr_ctx_t x_ctx, gr_ctx_t ctx)source
int _gr_poly_evaluate_other_horner(gr_ptr res, gr_srcptr f, slong len, const gr_srcptr x, gr_ctx_t x_ctx, gr_ctx_t ctx)source
int gr_poly_evaluate_other_horner(gr_ptr res, const gr_poly_t f, gr_srcptr x, gr_ctx_t x_ctx, gr_ctx_t ctx)source
int _gr_poly_evaluate_other_rectangular(gr_ptr res, gr_srcptr f, slong len, const gr_srcptr x, gr_ctx_t x_ctx, gr_ctx_t ctx)source
int gr_poly_evaluate_other_rectangular(gr_ptr res, const gr_poly_t f, gr_srcptr x, gr_ctx_t x_ctx, gr_ctx_t ctx)source

Set res to f(x) where the coefficients of f belong to ctx and x and res belong to x_ctx, for example an integer polynomial evaluated at a matrix or at a real ball. The coefficients enter the computation through gr_mul_other and gr_add_other. The default version uses Horner's rule.

Cite this page

The FLINT team, “_gr_poly_evaluate_other, gr_poly_evaluate_other, _gr_poly_evaluate_other_horner, gr_poly_evaluate_other_horner, _gr_poly_evaluate_other_rectangular, gr_poly_evaluate_other_rectangular (gr_poly.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/gr_poly/_gr_poly_evaluate_other.html (generated 2026-10-20).