FLINT3.7.0-dev

_nmod_mat_scalar_mul_generic, _nmod_mat_scalar_mul_precomp

Synopsis#include <flint/nmod_mat.h>
void _nmod_mat_scalar_mul_generic(nmod_mat_t B, const nmod_mat_t A, ulong c)source
void _nmod_mat_scalar_mul_precomp(nmod_mat_t B, const nmod_mat_t A, ulong c, ulong c_pr)source

Sets B = cA with nmod_mul, respectively with n_mulmod_shoup and c_pr = n_mulmod_precomp_shoup(c, n), which requires n < 2^{\mathtt{FLINT\_BITS} - 1}. Both require c < n.

Cite this page

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