FLINT3.7.0-dev

flint_mpz_init_set_readonly, flint_mpz_clear_readonly

Synopsis#include <flint/fmpz.h>
void flint_mpz_init_set_readonly(mpz_t z, const fmpz_t f)source
void flint_mpz_clear_readonly(mpz_t z)source

flint_mpz_init_set_readonly sets the uninitialised mpz_t z to the value of f, sharing the limbs of f if it is large; z must not be modified, f must not change while z is in use, and z is released with flint_mpz_clear_readonly.

Guides#

Cite this page

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