FLINT3.7.0-dev

nmod_mat_randops

Synopsis#include <flint/nmod_mat.h>
void nmod_mat_randops(nmod_mat_t mat, flint_rand_t state, slong count)source

Performs count random elementary operations on mat, each adding or subtracting a row to or from another row, or a column to or from another column (operations whose two indices coincide are skipped). These operations have determinant 1, so the rank and, for square matrices, the determinant are preserved.

Cite this page

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