_nmod_poly_reverse, nmod_poly_reverse
#include <flint/nmod_poly.h>void nmod_poly_reverse(nmod_poly_t output, const nmod_poly_t input, slong m)sourceSet output to the reversal of the input viewed as a polynomial of length : coefficient of the output is coefficient of the input, taken as 0 beyond its length. Input coefficients from index on are ignored.
_nmod_poly_reverse writes exactly coefficients, including leading zeros; nmod_poly_reverse normalises the result. The underscore version allows output == input but no partial overlap. Reversal turns division with remainder into power series division, which is why the _preinv functions of this module take the inverse of the reversed divisor; see Computing modulo a fixed polynomial.
Guides#
The FLINT team, “_nmod_poly_reverse, nmod_poly_reverse (nmod_poly.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/nmod_poly/_nmod_poly_reverse.html (generated 2026-11-02).
@misc{flint-doc-nmod-poly-nmod-poly-reverse,
author = {{The FLINT team}},
title = {{\_nmod\_poly\_reverse, nmod\_poly\_reverse (nmod\_poly.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/nmod_poly/_nmod_poly_reverse.html},
note = {Generated 2026-11-02}
}