FLINT3.7.0-dev

fmpz_mod_mat_mul_fmpz_vec, fmpz_mod_mat_mul_fmpz_vec_ptr

Synopsis#include <flint/fmpz_mod_mat.h>
void fmpz_mod_mat_mul_fmpz_vec(fmpz * c, const fmpz_mod_mat_t A, const fmpz * b, slong blen, const fmpz_mod_ctx_t ctx)source
void fmpz_mod_mat_mul_fmpz_vec_ptr(fmpz * const * c, const fmpz_mod_mat_t A, const fmpz * const * b, slong blen, const fmpz_mod_ctx_t ctx)source

Set the column vector c, of length the number of rows of A, to Ab modulo n, where b is truncated or zero-extended to the number of columns of A. The ptr variant takes arrays of pointers to the entries. b may contain any integers; c must not overlap b. The products are computed exactly with fmpz_mat_mul_fmpz_vec and reduced.

Cite this page

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