FLINT3.7.0-dev

n_poly_mod_mulmod, n_poly_mod_mulmod_preinv

Synopsis#include <flint/n_poly.h>
void n_poly_mod_mulmod(n_poly_t res, const n_poly_t poly1, const n_poly_t poly2, const n_poly_t f, nmod_t mod)source
void n_poly_mod_mulmod_preinv(n_poly_t A, const n_poly_t B, const n_poly_t C, const n_poly_t M, const n_poly_t Minv, nmod_t ctx)source

Set the output to B C \bmod M. The _preinv version takes Minv, the inverse of the reversal of M (see nmod_poly_mulmod_preinv), requires B, C reduced modulo M, and raises an exception otherwise.

Cite this page

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