FLINT3.7.0-dev

fmpz_mpoly_factor_cmp

Synopsis#include <flint/fmpz_mpoly_factor.h>
int fmpz_mpoly_factor_cmp(const fmpz_mpoly_factor_t f, const fmpz_mpoly_factor_t g, const fmpz_mpoly_ctx_t ctx)source

Compares f and g by their constants, then their numbers of factors, then factor by factor (exponent, then base by fmpz_mpoly_cmp). Returns a negative, zero or positive value. This is a total order on the stored data, not a comparison of the products.

Cite this page

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