FLINT3.7.0-dev

_gr_poly_mul, gr_poly_mul

Synopsis#include <flint/gr_poly.h>
int _gr_poly_mul(gr_ptr res, gr_srcptr poly1, slong len1, gr_srcptr poly2, slong len2, gr_ctx_t ctx)source
int gr_poly_mul(gr_poly_t res, const gr_poly_t poly1, const gr_poly_t poly2, gr_ctx_t ctx)source

Sets res to the product. The underscore version requires positive lengths, writes \mathit{len1} + \mathit{len2} - 1 coefficients and does not allow aliasing; it is _gr_poly_mullow with the full length, so the algorithm is that of the ring's GR_METHOD_POLY_MULLOW method.

Cite this page

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