FLINT3.7.0-dev

fmpz_mod_mat_can_solve

Synopsis#include <flint/fmpz_mod_mat.h>
int fmpz_mod_mat_can_solve(fmpz_mod_mat_t X, const fmpz_mod_mat_t A, const fmpz_mod_mat_t B, const fmpz_mod_ctx_t ctx)source

Solves AX = B for a matrix A of any shape and rank. Returns 1 and sets X to one solution if a solution exists; otherwise returns 0 and leaves X undefined. A wrapper of gr_mat_solve_field.

Guides#

Cite this page

The FLINT team, “fmpz_mod_mat_can_solve (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_can_solve.html (generated 2026-10-20).