FLINT3.7.0-dev

_fmpz_new_mpz, _fmpz_clear_mpz

Synopsis#include <flint/fmpz.h>
mpz_ptr _fmpz_new_mpz(void)source
void _fmpz_clear_mpz(fmpz f)source

Take an initialised mpz with at least MPZ_MIN_ALLOC limbs from the memory manager, respectively give back the mpz that the large value f points to. The mpz given back must still have at least MPZ_MIN_ALLOC limbs.

Guides#

Cite this page

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