FLINT3.7.0-dev

gr_poly_compose_mod_wrapper, gr_poly_compose_mod_preinv_wrapper

Synopsis#include <flint/gr_poly.h>
int gr_poly_compose_mod_wrapper(_gr_method_compose_mod_op _compose_mod, gr_poly_t res, const gr_poly_t poly1, const gr_poly_t poly2, const gr_poly_t poly3, gr_ctx_t ctx)source
int gr_poly_compose_mod_preinv_wrapper(_gr_method_compose_mod_preinv_op _compose_mod, gr_poly_t res, const gr_poly_t poly1, const gr_poly_t poly2, const gr_poly_t poly3, const gr_poly_t poly3inv, gr_ctx_t ctx)source

Implement the non-underscore modular composition functions around an underscore implementation: return GR_DOMAIN if h = 0, handle constant inputs, reduce g modulo h (or zero-pad it to length \deg h), manage memory and aliasing, and normalise the result.

Cite this page

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