FLINT3.7.0-dev

_fmpz_mod_vec_add, _fmpz_mod_vec_sub

Synopsis#include <flint/fmpz_mod_vec.h>
void _fmpz_mod_vec_add(fmpz * a, const fmpz * b, const fmpz * c, slong n, const fmpz_mod_ctx_t ctx)source
void _fmpz_mod_vec_sub(fmpz * a, const fmpz * b, const fmpz * c, slong n, const fmpz_mod_ctx_t ctx)source

Set (a, n) to (b, n) + (c, n) and (b, n) - (c, n), elementwise. Here n is the length of the vectors, not the modulus.

Cite this page

The FLINT team, “_fmpz_mod_vec_add, _fmpz_mod_vec_sub (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_add.html (generated 2026-10-20).