FLINT3.7.0-dev

fmpz_lll_mpf2, fmpz_lll_mpf2_with_removal

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

L² with Gram–Schmidt data in floating point of prec bits. Returns -1 if the precision turns out to be insufficient.

The arithmetic is that of nfloat if nfloat_ctx_init accepts the precision, and arf (gr_ctx_init_real_float_arf) otherwise. When the entries fit in a few limbs, the basis is packed (fmpz_lll_packed_t) and the Gram matrix entries are computed exactly and then rounded.

Cite this page

The FLINT team, “fmpz_lll_mpf2, fmpz_lll_mpf2_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_mpf2.html (generated 2026-10-20).