fq_zech_mat_randpermdiag
Synopsis
#include <flint/fq_zech_mat.h>int fq_zech_mat_randpermdiag(fq_zech_mat_t mat, flint_rand_t state, fq_zech_struct * diag, slong n, const fq_zech_ctx_t ctx)Sets mat to a random row and column permutation of the diagonal matrix whose first n diagonal entries are diag and whose other entries are zero; n must not exceed the number of rows or columns. Returns the parity of the permutation (0 for even, 1 for odd), as a wrapper of gr_mat_randpermdiag.
Generated from the same template as fq_mat_randpermdiag, whose documentation has the details.
Cite this page
The FLINT team, “fq_zech_mat_randpermdiag (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_randpermdiag.html (generated 2026-10-20).
@misc{flint-doc-fq-zech-mat-fq-zech-mat-randpermdiag,
author = {{The FLINT team}},
title = {{fq\_zech\_mat\_randpermdiag (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_randpermdiag.html},
note = {Generated 2026-10-20}
}