FLINT3.7.0-dev

ca_mat_randops

Synopsis#include <flint/ca_mat.h>
void ca_mat_randops(ca_mat_t mat, flint_rand_t state, slong count, ca_ctx_t ctx)source

Modifies mat in place by at most count random additions or subtractions of one row (or column) to another. This preserves the rank and, for a square matrix, the determinant. Wrapper of gr_mat_randops.

Cite this page

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