fq_zech_mat_randrank
Synopsis
#include <flint/fq_zech_mat.h>void fq_zech_mat_randrank(fq_zech_mat_t mat, flint_rand_t state, slong rank, const fq_zech_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_zech_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_zech_mat_randrank (fq_zech_mat.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/fq_zech_mat/fq_zech_mat_randrank.html (generated 2026-10-20).
@misc{flint-doc-fq-zech-mat-fq-zech-mat-randrank,
author = {{The FLINT team}},
title = {{fq\_zech\_mat\_randrank (fq\_zech\_mat.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/fq_zech_mat/fq_zech_mat_randrank.html},
note = {Generated 2026-10-20}
}