gr_mat_randtest_orthogonal
Synopsis
#include <flint/gr_mat.h>int gr_mat_randtest_orthogonal(gr_mat_t A, flint_rand_t state, gr_ctx_t ctx)sourceSets the square matrix A to a random orthogonal matrix, using Cayley's construction (I + S)^{-1}(I - S) with S skew-symmetric, or a permutation matrix if that fails, and then negates random rows. Returns GR_DOMAIN if A is not square. The ring is assumed to be commutative.
Cite this page
The FLINT team, “gr_mat_randtest_orthogonal (gr_mat.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/gr_mat/gr_mat_randtest_orthogonal.html (generated 2026-10-20).
@misc{flint-doc-gr-mat-gr-mat-randtest-orthogonal,
author = {{The FLINT team}},
title = {{gr\_mat\_randtest\_orthogonal (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_randtest_orthogonal.html},
note = {Generated 2026-10-20}
}