FLINT3.7.0-dev

fmpz_init_set_readonly, fmpz_clear_readonly

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

fmpz_init_set_readonly sets the uninitialised fmpz_t ff to the value of zz, sharing the limbs of zz if the value is large; ff must not be modified, zz must not change while ff is in use, and ff is released with fmpz_clear_readonly.

Guides#

Cite this page

The FLINT team, “fmpz_init_set_readonly, fmpz_clear_readonly (fmpz.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/fmpz/fmpz_init_set_readonly.html (generated 2026-11-02).