FLINT3.7.0-dev

_nmod_vec_mul

Synopsis#include <flint/nmod_vec.h>
void _nmod_vec_mul(nn_ptr res, nn_srcptr vec1, nn_srcptr vec2, slong len, nmod_t mod)source

Sets res[i] to vec1[i] * vec2[i] modulo nn for 0≤i<len0 \le i < \mathit{len}. The output may be either input. With AVX-512, AVX2 or NEON it uses vector kernels (Products of two vectors) for nn of up to 62 bits (50 bits without AVX-512); otherwise, the loops of _nmod_mul_halflimb, _nmod_mul_bounded, nmod_mul or, for nn of 64 bits, NMOD_MUL_FULLWORD, by the size of nn.

Guides#

Cite this page

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