FLINT3.7.0-dev

_nmod_vec_scalar_mul_nmod_lazy, _nmod_vec_scalar_addmul_nmod_lazy

Synopsis#include <flint/nmod_vec.h>
void _nmod_vec_scalar_mul_nmod_lazy(nn_ptr res, nn_srcptr vec, slong len, ulong c, nmod_t mod)source
void _nmod_vec_scalar_addmul_nmod_lazy(nn_ptr res, nn_srcptr vec, slong len, ulong c, nmod_t mod)source

The same as _nmod_vec_scalar_mul_nmod and _nmod_vec_scalar_addmul_nmod for n<2FLINT_BITS−2n < 2^{\mathtt{FLINT\_BITS} - 2}, except that the entries of res are only in [0,2n)[0, 2n) on output and, for _nmod_vec_scalar_addmul_nmod_lazy, may be in [0,2n)[0, 2n) on input (Lazy variants). They require c<nc < n and reduced entries of vec; when vec is res, its entries must therefore be reduced.

Guides#

Cite this page

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