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)sourceComputes 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).
@misc{flint-doc-fmpz-mod-mat-fmpz-mod-mat-nullspace,
author = {{The FLINT team}},
title = {{fmpz\_mod\_mat\_nullspace (fmpz\_mod\_mat.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/fmpz_mod_mat/fmpz_mod_mat_nullspace.html},
note = {Generated 2026-10-20}
}