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)sourcevoid 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)sourceSet 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).
@misc{flint-doc-n-poly-n-poly-mod-mulmod,
author = {{The FLINT team}},
title = {{n\_poly\_mod\_mulmod, n\_poly\_mod\_mulmod\_preinv (n\_poly.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/n_poly/n_poly_mod_mulmod.html},
note = {Generated 2026-10-20}
}