gr_mat_randrank
Synopsis
#include <flint/gr_mat.h>int gr_mat_randrank(gr_mat_t mat, flint_rand_t state, slong rank, gr_ctx_t ctx)sourceSets mat to a random sparse matrix with the given rank and exactly rank nonzero entries (meaningful over integral domains). A dense matrix of the same rank is obtained by calling gr_mat_randops afterwards.
Cite this page
The FLINT team, “gr_mat_randrank (gr_mat.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/gr_mat/gr_mat_randrank.html (generated 2026-10-20).
@misc{flint-doc-gr-mat-gr-mat-randrank,
author = {{The FLINT team}},
title = {{gr\_mat\_randrank (gr\_mat.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/gr_mat/gr_mat_randrank.html},
note = {Generated 2026-10-20}
}