FLINT3.7.0-dev

gr_ctx_clear

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

Clears the context object, freeing any memory it owns. All elements of the ring must be cleared before the context; a ring built on top of a base ring (for example a polynomial ring) must be cleared before its base ring.

Guides#

Cite this page

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