FLINT3.7.0-dev

nmod_mpoly_factor_expand, nmod_mpoly_factor_matches

Synopsis#include <flint/nmod_mpoly_factor.h>
int nmod_mpoly_factor_expand(nmod_mpoly_t A, const nmod_mpoly_factor_t f, const nmod_mpoly_ctx_t ctx)source
int nmod_mpoly_factor_matches(const nmod_mpoly_t a, const nmod_mpoly_factor_t f, const nmod_mpoly_ctx_t ctx)source

nmod_mpoly_factor_expand sets A to the product c \prod_i f_i^{e_i} and returns 1, or returns 0 if an exponent is negative or a power is too large to compute. nmod_mpoly_factor_matches returns whether f expands to a.

Cite this page

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