FLINT3.7.0-dev

gr_test_ring

Synopsis#include <flint/gr.h>
void gr_test_ring(gr_ctx_t R, slong iters, int test_flags)source

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#

Cite this page

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