gr_mat_randsimilar
Synopsis
#include <flint/gr_mat.h>int gr_mat_randsimilar(gr_mat_t mat, flint_rand_t state, slong opcount, gr_ctx_t ctx)sourceRandomises the square matrix mat in place by at most opcount conjugations by random elementary matrices, which preserve the characteristic and minimal polynomials.
Cite this page
The FLINT team, “gr_mat_randsimilar (gr_mat.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/gr_mat/gr_mat_randsimilar.html (generated 2026-10-20).
@misc{flint-doc-gr-mat-gr-mat-randsimilar,
author = {{The FLINT team}},
title = {{gr\_mat\_randsimilar (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_randsimilar.html},
note = {Generated 2026-10-20}
}