FLINT3.7.0-dev

fmpz_mpoly_sort_terms

Synopsis#include <flint/fmpz_mpoly.h>
void fmpz_mpoly_sort_terms(fmpz_mpoly_t A, const fmpz_mpoly_ctx_t ctx)source

Sorts the terms of A into decreasing order of their monomials. Like terms are not combined and zero coefficients are not removed. The sort is a most significant bit first radix sort on the packed monomials, which costs O(\mathit{len} \cdot b) for b significant bits of the monomials.

Guides#

Cite this page

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