FLINT3.7.0-dev

_gr_poly_preinv_mulmod, gr_poly_preinv_mulmod

Synopsis#include <flint/gr_poly.h>
int _gr_poly_preinv_mulmod(gr_ptr res, gr_srcptr poly1, slong len1, gr_srcptr poly2, slong len2, const gr_poly_preinv_t P, gr_ctx_t ctx)source
int gr_poly_preinv_mulmod(gr_poly_t res, const gr_poly_t poly1, const gr_poly_t poly2, const gr_poly_preinv_t P, gr_ctx_t ctx)source

Set res to the product modulo f. The underscore version requires reduced inputs (lengths less than \operatorname{len}(f)), writes \operatorname{len}(f) - 1 coefficients, allows aliasing, and skips the reduction when the product has degree less than \deg f.

Cite this page

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