FLINT3.7.0-dev

gr_mpoly_set_other

Synopsis#include <flint/gr_mpoly.h>
int gr_mpoly_set_other(gr_mpoly_t res, gr_srcptr A, gr_ctx_t A_ctx, gr_mpoly_ctx_t ctx)source

Converts the element A of the ring A_ctx into the polynomial ring.

If A_ctx is a multivariate polynomial ring, the coefficients are converted and the generators matched: by name if both rings have named generators (every generator used in A must have a namesake in ctx), and directly if both rings have the same number of unnamed generators and the same ordering. Other cases are not supported. Otherwise A is converted as a constant into the coefficient ring. Absorbing the generators of nested rings, as from R[x, y][s, t] to R[x, y, s, t], is not supported.

Cite this page

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