FLINT3.7.0-dev

_fmpz_mod_vec_get_fmpz_vec_smod

Synopsis#include <flint/fmpz_mod_vec.h>
void _fmpz_mod_vec_get_fmpz_vec_smod(fmpz * res, const fmpz * vec, slong len, const fmpz_mod_ctx_t ctx)source

Given canonical residues (\mathit{vec}, \mathit{len}), sets (\mathit{res}, \mathit{len}) to the symmetric residues in (-n/2, n/2]. This is the same as _fmpz_vec_scalar_smod_fmpz but faster, since the input is known to be reduced: each entry costs one comparison and at most one subtraction.

Cite this page

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