FLINT3.7.0-dev

_fmpz_vec_content, _fmpz_vec_content_chained

Synopsis#include <flint/fmpz_vec.h>
void _fmpz_vec_content(fmpz_t res, const fmpz * vec, slong len)source
void _fmpz_vec_content_chained(fmpz_t res, const fmpz * vec, slong len, const fmpz_t inp)source

Set res to the nonnegative GCD of the entries (0 for a zero or empty vector), respectively of the entries and inp, which allows the common content of several vectors to be accumulated. The computation stops as soon as the GCD becomes 1.

Guides#

Cite this page

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