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)sourceSorts 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).
@misc{flint-doc-fmpz-mpoly-fmpz-mpoly-sort-terms,
author = {{The FLINT team}},
title = {{fmpz\_mpoly\_sort\_terms (fmpz\_mpoly.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/fmpz_mpoly/fmpz_mpoly_sort_terms.html},
note = {Generated 2026-10-20}
}