FLINT3.7.0-dev

nmod_mat_mul_nmod_vec, nmod_mat_mul_nmod_vec_ptr

Synopsis#include <flint/nmod_mat.h>
void nmod_mat_mul_nmod_vec(ulong * c, const nmod_mat_t A, const ulong * b, slong blen)source
void nmod_mat_mul_nmod_vec_ptr(ulong * const * c, const nmod_mat_t A, const ulong * const * b, slong blen)source

Sets c = Ab, where A is m \times k and b is the vector of length blen, truncated or extended by zeros to length k. The m entries of c are written. In the _ptr version, entry i of b and c is *b[i] and *c[i]. Each entry of c is a dot product with one reduction. c must not overlap b, except in the _ptr version, which copies.

Cite this page

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