FLINT3.7.0-dev

_n_fq_poly_mul_, n_fq_poly_mul_, n_fq_poly_mul, n_fq_poly_mullow

Synopsis#include <flint/n_poly.h>
void _n_fq_poly_mul_(ulong * A, const ulong * B, slong Blen, const ulong * C, slong Clen, const fq_nmod_ctx_t ctx, n_poly_stack_t St)source
void n_fq_poly_mul_(n_poly_t A, const n_poly_t B, const n_poly_t C, const fq_nmod_ctx_t ctx, n_poly_stack_t St)source
void n_fq_poly_mul(n_poly_t A, const n_poly_t B, const n_poly_t C, const fq_nmod_ctx_t ctx)source
void n_fq_poly_mullow(n_poly_t A, const n_poly_t B, const n_poly_t C, slong order, const fq_nmod_ctx_t ctx)source

Multiplication (truncated to length order for n_fq_poly_mullow). If one factor has fewer than 4 terms the product is computed classically with delayed reduction; otherwise by Kronecker substitution: each coefficient is placed in a slot of 2d - 1 words, the packed polynomials are multiplied with _nmod_poly_mul, and the slots are reduced modulo the defining polynomial. The trailing-underscore versions take a stack of temporaries; _n_fq_poly_mul_ works on arrays of Blen and Clen coefficients and writes \mathit{Blen} + \mathit{Clen} - 1.

Cite this page

The FLINT team, “_n_fq_poly_mul_, n_fq_poly_mul_, n_fq_poly_mul, n_fq_poly_mullow (n_poly.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/n_poly/_n_fq_poly_mul_.html (generated 2026-10-20).