FLINT3.7.0-dev

_fq_nmod_poly_divrem

Synopsis#include <flint/fq_nmod_poly.h>
void _fq_nmod_poly_divrem(fq_nmod_struct * Q, fq_nmod_struct * R, const fq_nmod_struct * A, slong lenA, const fq_nmod_struct * B, slong lenB, const fq_nmod_t invB, const fq_nmod_ctx_t ctx)

Computes (Q, lenA - lenB + 1) and (R, lenB - 1) with A = BQ + R and \deg R < \deg B, given the inverse invB of the leading coefficient of B. Requires lenA \ge lenB > 0. Allows aliasing of R and A but no other aliasing.

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

Cite this page

The FLINT team, “_fq_nmod_poly_divrem (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_divrem.html (generated 2026-10-20).