FLINT3.7.0-dev

gr_ctx_init_fmpz_mpoly_q_factored

Synopsis#include <flint/gr.h>
void gr_ctx_init_fmpz_mpoly_q_factored(gr_ctx_t ctx, slong nvars, const ordering_t ord)source

Initialises ctx to the same field \mathbb{Q}(x_1, \ldots, x_n), with elements of type fmpz_mpoly_q_factored_struct in which denominators are kept fully factored: addition and multiplication then avoid polynomial GCDs, while division requires factorisation. Elements can be converted to and from the contexts of gr_ctx_init_fmpz_mpoly_q and gr_ctx_init_fmpz_mpoly with the same number of variables and ordering using gr_set_other.

Cite this page

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