_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)sourcevoid _nmod_mat_scalar_mul_precomp(nmod_mat_t B, const nmod_mat_t A, ulong c, ulong c_pr)sourceSets 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).
@misc{flint-doc-nmod-mat-nmod-mat-scalar-mul-generic,
author = {{The FLINT team}},
title = {{\_nmod\_mat\_scalar\_mul\_generic, \_nmod\_mat\_scalar\_mul\_precomp (nmod\_mat.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/nmod_mat/_nmod_mat_scalar_mul_generic.html},
note = {Generated 2026-10-20}
}