_fq_poly_divides, fq_poly_divides
Synopsis
#include <flint/fq_poly.h>int _fq_poly_divides(fq_struct * Q, const fq_struct * A, slong lenA, const fq_struct * B, slong lenB, const fq_t invB, const fq_ctx_t ctx)Return 1 and set Q = A / B if B divides A, and return 0 otherwise (then Q is undefined). The underscore version requires lenA \ge lenB > 0, space for lenA - lenB + 1 coefficients in Q and no aliasing. fq_poly_divides throws FLINT_DIVZERO if B = 0. The test performs a full division with remainder.
Cite this page
The FLINT team, “_fq_poly_divides, fq_poly_divides (fq_poly.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/fq_poly/_fq_poly_divides.html (generated 2026-10-20).
@misc{flint-doc-fq-poly-fq-poly-divides,
author = {{The FLINT team}},
title = {{\_fq\_poly\_divides, fq\_poly\_divides (fq\_poly.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/fq_poly/_fq_poly_divides.html},
note = {Generated 2026-10-20}
}