FLINT3.7.0-dev

_fq_nmod_poly_reverse, fq_nmod_poly_reverse

Synopsis#include <flint/fq_nmod_poly.h>
void _fq_nmod_poly_reverse(fq_nmod_struct * res, const fq_nmod_struct * poly, slong len, slong n, const fq_nmod_ctx_t ctx)
void fq_nmod_poly_reverse(fq_nmod_poly_t res, const fq_nmod_poly_t poly, slong n, const fq_nmod_ctx_t ctx)

Set res to the reversal x^{n-1} f(1/x) of the polynomial f = poly truncated to length n, considered as a polynomial of length n. The underscore version requires \mathit{len} \le n, writes n coefficients and allows res to be poly.

Generated from the same template as _fq_poly_reverse, whose documentation has the details.

Cite this page

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