fmpz_mat_CRT_ui
Synopsis
#include <flint/fmpz_mat.h>void fmpz_mat_CRT_ui(fmpz_mat_t res, const fmpz_mat_t mat1, const fmpz_t m1, const nmod_mat_t mat2, int sign)sourceGiven mat1 with entries in (or if sign is 1) and mat2 modulo coprime to , sets res to the matrix congruent to mat1 modulo and to mat2 modulo with entries in if sign is 0 and in if sign is 1. res may be mat1. Throws if is not invertible modulo .
Guides#
Cite this page
The FLINT team, “fmpz_mat_CRT_ui (fmpz_mat.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/fmpz_mat/fmpz_mat_CRT_ui.html (generated 2026-11-02).
@misc{flint-doc-fmpz-mat-fmpz-mat-CRT-ui,
author = {{The FLINT team}},
title = {{fmpz\_mat\_CRT\_ui (fmpz\_mat.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/fmpz_mat/fmpz_mat_CRT_ui.html},
note = {Generated 2026-11-02}
}