FLINT3.7.0-dev

_fmpz_vec_prod, _fmpz_ui_vec_prod

Synopsis#include <flint/fmpz_vec.h>
void _fmpz_vec_prod(fmpz_t res, const fmpz * vec, slong len)source
void _fmpz_ui_vec_prod(fmpz_t res, nn_srcptr vec, slong len)source

Set res to the product of the entries of an array of integers, respectively of words; the empty product is 1. Both use a balanced product tree (Binary splitting and product trees), with leaves of at most 3 integers, respectively 15 words, multiplied in sequence.

Cite this page

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