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 zz to the value of ff, sharing the limbs of ff if it is large; zz must not be modified, ff must not change while zz is in use, and zz 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-11-02).