gr_mpoly_set_other
#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)sourceConverts 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.
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).
@misc{flint-doc-gr-mpoly-gr-mpoly-set-other,
author = {{The FLINT team}},
title = {{gr\_mpoly\_set\_other (gr\_mpoly.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/gr_mpoly/gr_mpoly_set_other.html},
note = {Generated 2026-10-20}
}