FLINT3.7.0-dev

gr_generic_set_other

Synopsis#include <flint/gr_generic.h>
int gr_generic_set_other(gr_ptr res, gr_srcptr x, gr_ctx_t xctx, gr_ctx_t ctx)source

The default conversion from another ring: gr_set if xctx is ctx, gr_set_fmpz from \mathbb{Z}, gr_set_fmpq from \mathbb{Q}, gr_set_fexpr from symbolic expressions, and GR_UNABLE from any other ring. Rings override it to accept their base rings and related types.

Cite this page

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