FLINT3.7.0-dev

_fmpz_mod_poly_product_roots_fmpz_vec, fmpz_mod_poly_product_roots_fmpz_vec

Synopsis#include <flint/fmpz_mod_poly.h>
void _fmpz_mod_poly_product_roots_fmpz_vec(fmpz * poly, const fmpz * xs, slong n, const fmpz_mod_ctx_t ctx)source
void fmpz_mod_poly_product_roots_fmpz_vec(fmpz_mod_poly_t poly, const fmpz * xs, slong n, const fmpz_mod_ctx_t ctx)source

Set poly to the monic polynomial (x−x0)(x−x1)⋯(x−xn−1)(x - x_0)(x - x_1) \cdots (x - x_{n-1}) for reduced xix_i, by a quadratic algorithm for n<20n < 20 and by splitting the roots into halves otherwise. The underscore version writes n+1n + 1 coefficients and does not allow aliasing.

Cite this page

The FLINT team, “_fmpz_mod_poly_product_roots_fmpz_vec, fmpz_mod_poly_product_roots_fmpz_vec (fmpz_mod_poly.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/fmpz_mod_poly/_fmpz_mod_poly_product_roots_fmpz_vec.html (generated 2026-11-02).