FLINT3.7.0-dev

gr_ctx_uninitialized

Synopsis#include <flint/gr.h>
void gr_ctx_uninitialized(gr_ctx_t ctx)source

Sets ctx to a placeholder context that can be printed and cleared but supports no other operation; initialising an element throws an exception. Wrapper code uses it for a context whose constructor failed (for example gr_ctx_init_mpn_mod with an unsupported modulus), so that it can still be cleared.

Cite this page

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