flint_mpn_gcd_vec
Synopsis
#include <flint/mpn_extras.h>mp_size_t flint_mpn_gcd_vec(mp_ptr g, mp_size_t gn, const mp_srcptr * xp, const mp_size_t * xn, slong len)sourceSets to the greatest common divisor of and the len values , and returns its length (0 if all are zero). The values are given by pointer, so that they need not be contiguous or copied, and must be normalised (top limb nonzero), with for zero; means that is not used as input. The inputs are not modified. The output array must have room for limbs, the minimum taken over the nonzero inputs, and must not overlap the values.
Cite this page
The FLINT team, “flint_mpn_gcd_vec (mpn_extras.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/mpn_extras/flint_mpn_gcd_vec.html (generated 2026-11-02).
@misc{flint-doc-mpn-extras-flint-mpn-gcd-vec,
author = {{The FLINT team}},
title = {{flint\_mpn\_gcd\_vec (mpn\_extras.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/mpn_extras/flint_mpn_gcd_vec.html},
note = {Generated 2026-11-02}
}