FLINT3.7.0-dev

mpn_mod_ctx_write, mpn_mod_ctx_clear

Synopsis#include <flint/mpn_mod.h>
int mpn_mod_ctx_write(gr_stream_t out, gr_ctx_t ctx)source
void mpn_mod_ctx_clear(gr_ctx_t ctx)source

The gr methods for writing a description of the ring (Integers mod n (mpn)) and for freeing the context. Use gr_ctx_write and gr_ctx_clear.

Cite this page

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