gr_test_ring
#include <flint/gr.h>Tests the ring R, running each test iters times (vector tests iters / 10 + 1 times): conversions and printing, the ring axioms (associativity, commutativity if gr_ctx_is_commutative_ring is T_TRUE, distributivity), aliasing of the arithmetic functions, consistency of the type variants (_ui, _si, _fmpz, _fmpq, _other), division, inversion and exact division, powering, square roots, ordering, GCD, LCM and factorisation when the ring is a unique factorisation domain, vector operations, dot products and classical matrix multiplication. Throws an exception on the first failure.
Guides#
The FLINT team, “gr_test_ring (gr.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/gr/gr_test_ring.html (generated 2026-10-20).
@misc{flint-doc-gr-gr-test-ring,
author = {{The FLINT team}},
title = {{gr\_test\_ring (gr.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/gr/gr_test_ring.html},
note = {Generated 2026-10-20}
}