FLINT3.7.0-dev

_gr_poly_mulmid, gr_poly_mulmid

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

Sets res to the middle product: the coefficients of x^{\mathit{nlo}}, \ldots, x^{\mathit{nhi} - 1} of the product, shifted down by \mathit{nlo}. The underscore version requires positive lengths and 0 \le \mathit{nlo} < \mathit{nhi} \le \mathit{len1} + \mathit{len2} - 1, writes \mathit{nhi} - \mathit{nlo} coefficients and does not allow aliasing. It calls the ring method GR_METHOD_POLY_MULMID; see Middle products and the transposition principle.

Cite this page

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