fq_nmod_mat_randrank
Synopsis
#include <flint/fq_nmod_mat.h>void fq_nmod_mat_randrank(fq_nmod_mat_t mat, flint_rand_t state, slong rank, const fq_nmod_ctx_t ctx)Sets mat to a random sparse matrix of the given rank, with exactly rank nonzero entries, which are random nonzero elements. fq_nmod_mat_randops turns it into a dense matrix of the same rank.
Generated from the same template as fq_mat_randrank, whose documentation has the details.
Cite this page
The FLINT team, “fq_nmod_mat_randrank (fq_nmod_mat.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/fq_nmod_mat/fq_nmod_mat_randrank.html (generated 2026-10-20).
@misc{flint-doc-fq-nmod-mat-fq-nmod-mat-randrank,
author = {{The FLINT team}},
title = {{fq\_nmod\_mat\_randrank (fq\_nmod\_mat.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/fq_nmod_mat/fq_nmod_mat_randrank.html},
note = {Generated 2026-10-20}
}