FLINT3.7.0-dev

fmpq_mat_get_fmpz_mat_mod_fmpz

Synopsis#include <flint/fmpq_mat.h>
void fmpq_mat_get_fmpz_mat_mod_fmpz(fmpz_mat_t dest, const fmpq_mat_t mat, const fmpz_t mod)source

Sets each entry of dest to the corresponding entry of mat modulo mod, in [0, \mathit{mod}) (see fmpq_mod_fmpz). All denominators must be invertible modulo mod; otherwise the corresponding entries are undefined.

Cite this page

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