FLINT3.7.0-dev

nmod_redc_ctx_struct, nmod_redc_ctx_t

Synopsis#include <flint/nmod.h>
nmod_redc_ctx_struct
nmod_redc_ctx_t

A context for Montgomery arithmetic. The field mod is an ordinary nmod_t for n, used for conversions and for addition, and nred is -n^{-1} \bmod R. The context needs no clearing.

Guides#

Cite this page

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