_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)sourceGiven 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).
@misc{flint-doc-fmpz-mod-vec-fmpz-mod-vec-get-fmpz-vec-smod,
author = {{The FLINT team}},
title = {{\_fmpz\_mod\_vec\_get\_fmpz\_vec\_smod (fmpz\_mod\_vec.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/fmpz_mod_vec/_fmpz_mod_vec_get_fmpz_vec_smod.html},
note = {Generated 2026-10-20}
}