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 f to the value of z, sharing the limbs of z if the value is large; f must not be modified, z must not change while f is in use, and f 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-10-20).