FLINT3.7.0-dev

fmpz_get_mpn

Synopsis#include <flint/fmpz.h>
int fmpz_get_mpn(nn_ptr * n, fmpz_t n_in)source

Allocates an array with flint_malloc, stores the limbs of |n_{in}| in it, sets *n to it and returns the number of limbs (at least 1). The caller frees the array with flint_free. For n_{in} = 0 the array has one limb, which is 0.

Cite this page

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