FLINT3.7.0-dev

_fq_zech_poly_mulmid_want_univariate, _fq_zech_poly_sqr_want_univariate

Synopsis#include <flint/fq_zech_poly.h>
int _fq_zech_poly_mulmid_want_univariate(slong len1, slong len2, slong nlo, slong nhi, const fq_zech_ctx_t ctx)source
int _fq_zech_poly_sqr_want_univariate(slong len, const fq_zech_ctx_t ctx)source

Return whether the substitution algorithm should be used for the middle product of lengths len1 and len2 with output range [\mathit{nlo}, \mathit{nhi}), respectively for squaring a polynomial of length len. The decision compares an estimate of the work of the classical algorithm (the number of term products in the output range) with the length of the substituted product, scaled by _fq_zech_poly_mul_univariate_threshold; it is never taken if the shorter input has fewer terms than the threshold.

Cite this page

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