FLINT3.7.0-dev

tuple_print, tuple_next, tuple_saturate

Synopsis#include <flint/fmpz_mpoly_factor.h>
void tuple_print(fmpz * alpha, slong n)source
void tuple_next(fmpz * alpha, slong n)source
void tuple_saturate(fmpz * alpha, slong n, slong m)source

Helpers for enumerating evaluation points in \mathbb{N}^n: print a tuple, step to the next tuple (all tuples with a given sum are visited before the sum increases), and move the entries after index m into entry m (making it 1 if the first m + 1 entries would all be zero) so that one of the first m + 1 entries changes at the next step.

Cite this page

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