FLINT3.7.0-dev

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)source

Sets 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).