nmod_mat_scalar_mul
#include <flint/nmod_mat.h>void nmod_mat_scalar_mul(nmod_mat_t B, const nmod_mat_t A, ulong c)sourceSets . Requires .
The cases , and are a zeroing, a copy and a negation. Otherwise _nmod_vec_scalar_mul_nmod computes the products, in one call on all the entries when the rows of and follow each other in memory (stride equal to the number of columns), else row by row for rows of at least NMOD_VEC_SIMD_MIN_LEN entries when a vector kernel applies to (NMOD_VEC_SIMD_SCALAR_MAX_BITS, nmod_vec.h), of at least 8 entries when , and of at least 16 entries otherwise. Shorter rows of a window are done entry by entry, with Shoup multiplication for and matrices with at least FLINT_MULMOD_SHOUP_THRESHOLD entries, and nmod_mul otherwise.
The FLINT team, “nmod_mat_scalar_mul (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.html (generated 2026-11-20).
@misc{flint-doc-nmod-mat-nmod-mat-scalar-mul,
author = {{The FLINT team}},
title = {{nmod\_mat\_scalar\_mul (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.html},
note = {Generated 2026-11-20}
}