FLINT3.7.0-dev

gr_transformed_mpn_get_fmpz_destructive

Synopsis#include <flint/gr.h>
int gr_transformed_mpn_get_fmpz_destructive(fmpz_t f, slong lo_limbs, gr_ptr x, gr_ctx_t ctx)source

Converts x into f, consuming it. The width the reconstruction needs is taken from the element and f is grown to match, so the conversion writes straight into the limbs of f, with neither staging nor a copy. A nonzero lo_limbs selects the truncated conversion, with the error described for gr_transformed_mpn_get_trunc. This is the conversion to use whenever the destination is an fmpz.

Cite this page

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