FLINT3.7.0-dev

nmod_mat_scalar_addmul_ui

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

Sets C=A+cBC = A + cB. Unlike nmod_mat_scalar_mul, cc may be any word; it is reduced modulo nn first. As in nmod_mat_scalar_mul, the products are computed by _nmod_vec_scalar_addmul_nmod (or, when CC is BB but not AA, by _nmod_vec_scalar_mul_nmod followed by an addition), on all the entries at once or row by row, and entry by entry for shorter rows.

Cite this page

The FLINT team, “nmod_mat_scalar_addmul_ui (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_addmul_ui.html (generated 2026-11-20).