_fmpz_vec_lcm, _fmpz_vec_lcm_strided
Synopsis
#include <flint/fmpz_vec.h>void _fmpz_vec_lcm_strided(fmpz_t res, const fmpz * vec, slong stride, slong len, const fmpz_t inp)sourceSets res to the nonnegative least common multiple of the entries: 0 if an entry is zero and 1 for an empty vector. The strided version takes the len entries vec[0], vec[stride], ..., and the LCM also with inp unless it is NULL, which allows LCMs to be accumulated. res may be aliased with inp or with an entry. For an fmpq vector a, the denominators are the entries of stride 2 from fmpq_denref(a). See Contents and least common multiples of vectors for the algorithm.
Cite this page
The FLINT team, “_fmpz_vec_lcm, _fmpz_vec_lcm_strided (fmpz_vec.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/fmpz_vec/_fmpz_vec_lcm.html (generated 2026-11-02).
@misc{flint-doc-fmpz-vec-fmpz-vec-lcm,
author = {{The FLINT team}},
title = {{\_fmpz\_vec\_lcm, \_fmpz\_vec\_lcm\_strided (fmpz\_vec.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/fmpz_vec/_fmpz_vec_lcm.html},
note = {Generated 2026-11-02}
}