FLINT3.7.0-dev

_gr_get_gr_poly, _gr_get_gr_poly_destructive

Synopsis#include <flint/gr_poly.h>
int _gr_get_gr_poly(gr_ptr c, slong * len, gr_srcptr x, gr_ctx_t base_ctx, gr_ctx_t tctx)source
int _gr_get_gr_poly_destructive(gr_ptr c, slong * len, gr_ptr x, gr_ctx_t base_ctx, gr_ctx_t tctx)source

Write the coefficients of the polynomial represented by x to c and its length to *len; c must have room for the length bound of tctx. The destructive version may run the inverse transform in the storage of x, saving a copy, after which x may only be cleared or overwritten as the destination of an assignment or a product; it falls back to the copying conversion when the ring does not provide it.

Cite this page

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