FLINT3.7.0-dev

gr_mat_randops

Synopsis#include <flint/gr_mat.h>
int gr_mat_randops(gr_mat_t mat, flint_rand_t state, slong count, gr_ctx_t ctx)source

Randomises mat in place by at most count random additions or subtractions of one row (column) to another, which preserves the determinant and the rank.

Cite this page

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