FLINT3.7.0-dev

_fmpz_mod_vec_set_fmpz_vec

Synopsis#include <flint/fmpz_mod_vec.h>
void _fmpz_mod_vec_set_fmpz_vec(fmpz * A, const fmpz * B, slong len, const fmpz_mod_ctx_t ctx)source

Sets the entries of (A, \mathit{len}) to the entries of (B, \mathit{len}) reduced modulo n; B may contain any integers and may alias A.

Long vectors, or vectors with large entries or a large modulus, are reduced in parallel when FLINT uses several threads.

Cite this page

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