nmod_redc_neg, nmod_redc_add, nmod_redc_sub, nmod_redc_mul
Synopsis
#include <flint/nmod.h>ulong nmod_redc_neg(ulong x, const nmod_redc_ctx_t ctx)sourceulong nmod_redc_add(ulong x, ulong y, const nmod_redc_ctx_t ctx)sourceulong nmod_redc_sub(ulong x, ulong y, const nmod_redc_ctx_t ctx)sourceulong nmod_redc_mul(ulong x, ulong y, const nmod_redc_ctx_t ctx)sourceNegation, addition, subtraction and multiplication in Montgomery form, for inputs and output in [0, n). Negation, addition and subtraction are the same as for ordinary residues.
Guides#
Cite this page
The FLINT team, “nmod_redc_neg, nmod_redc_add, nmod_redc_sub, nmod_redc_mul (nmod.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/nmod/nmod_redc_neg.html (generated 2026-10-20).
@misc{flint-doc-nmod-nmod-redc-neg,
author = {{The FLINT team}},
title = {{nmod\_redc\_neg, nmod\_redc\_add, nmod\_redc\_sub, nmod\_redc\_mul (nmod.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/nmod/nmod_redc_neg.html},
note = {Generated 2026-10-20}
}