FLINT3.7.0-dev

fmpz_lll_is_reduced, fmpz_lll_is_reduced_with_removal

Synopsis#include <flint/fmpz_lll.h>
int fmpz_lll_is_reduced(const fmpz_mat_t B, const fmpz_lll_t fl, flint_bitcnt_t prec)source
int fmpz_lll_is_reduced_with_removal(const fmpz_mat_t B, const fmpz_lll_t fl, const fmpz_t gs_B, int newd, flint_bitcnt_t prec)source

Returns 1 if B is reduced and 0 otherwise, conclusively. Leading zero rows of a basis are ignored. The fast tests fmpz_lll_is_reduced_d and fmpz_lll_is_reduced_mpfr (with precision prec) are tried first; if both are inconclusive, the exact test fmpz_mat_is_reduced (or fmpz_mat_is_reduced_gram, or the removal versions) decides. If gs_B is NULL, fmpz_lll_is_reduced_with_removal is fmpz_lll_is_reduced.

Cite this page

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