FLINT3.7.0-dev

_fmpz_mod_addN, _fmpz_mod_subN, _fmpz_mod_mulN

Synopsis#include <flint/fmpz_mod.h>
void _fmpz_mod_addN(fmpz_t a, const fmpz_t b, const fmpz_t c, const fmpz_mod_ctx_t ctx)source
void _fmpz_mod_subN(fmpz_t a, const fmpz_t b, const fmpz_t c, const fmpz_mod_ctx_t ctx)source
void _fmpz_mod_mulN(fmpz_t a, const fmpz_t b, const fmpz_t c, const fmpz_mod_ctx_t ctx)source

For any modulus, with fmpz arithmetic; _fmpz_mod_mulN reduces with fmpz_mod, or with fmpz_fdiv_r_preinvn when the context has a precomputed inverse.

Cite this page

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