FLINT3.7.0-dev

fmpz_mat_randops

Synopsis#include <flint/fmpz_mat.h>
void fmpz_mat_randops(fmpz_mat_t mat, flint_rand_t state, slong count)source

Applies count random elementary operations to mat, each adding or subtracting a random row to another row, or a random column to another column. These operations are unimodular, so the rank, the determinant and the Hermite and Smith normal forms are preserved.

Cite this page

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