FLINT3.7.0-dev

_fmpz_mod_poly_reverse, fmpz_mod_poly_reverse

Synopsis#include <flint/fmpz_mod_poly.h>
void _fmpz_mod_poly_reverse(fmpz * res, const fmpz * poly, slong len, slong n)source
void fmpz_mod_poly_reverse(fmpz_mod_poly_t res, const fmpz_mod_poly_t poly, slong n, const fmpz_mod_ctx_t ctx)source

Set res to the reversal x^{n-1} \mathit{poly}(1/x) of poly viewed as a polynomial of length n (truncated or zero-padded). The underscore version writes exactly n coefficients, requires \mathit{len} \le n and allows res and poly to be the same array; the other version normalises the result, which can therefore be shorter than n.

Guides#

Cite this page

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