_fmpz_mod_poly_reverse, fmpz_mod_poly_reverse
Synopsis
#include <flint/fmpz_mod_poly.h>void fmpz_mod_poly_reverse(fmpz_mod_poly_t res, const fmpz_mod_poly_t poly, slong n, const fmpz_mod_ctx_t ctx)sourceSet 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).
@misc{flint-doc-fmpz-mod-poly-fmpz-mod-poly-reverse,
author = {{The FLINT team}},
title = {{\_fmpz\_mod\_poly\_reverse, fmpz\_mod\_poly\_reverse (fmpz\_mod\_poly.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/fmpz_mod_poly/_fmpz_mod_poly_reverse.html},
note = {Generated 2026-10-20}
}