FLINT3.7.0-dev

fmpz_mod_mat_nullspace

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

Computes a basis of the right nullspace \{x : Ax = 0\} of A and returns its dimension (the nullity) k. The basis vectors are written to the first k columns of X, and all other entries of X are set to zero. X is not resized: it must have as many rows as A has columns and at least k columns (allocate it square, with the number of columns of A, when k is not known).

Guides#

Cite this page

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