FLINT3.7.0-dev

GR_FRACTION_NO_REDUCTION, GR_FRACTION_STRONGLY_CANONICAL

Synopsis#include <flint/gr.h>
GR_FRACTION_NO_REDUCTIONsource
GR_FRACTION_STRONGLY_CANONICALsource

Flags for gr_ctx_init_gr_fraction. GR_FRACTION_NO_REDUCTION disables the reduction of fractions, which allows fraction field arithmetic over domains without a GCD or canonical associates, and can be faster when GCDs are more expensive than letting the entries grow. GR_FRACTION_STRONGLY_CANONICAL asserts that reduced fractions are strongly canonical (a/b = c/d if and only if a = c and b = d), which allows faster equality tests; this holds in unique factorisation domains with a correct GCD and canonical associates.

Cite this page

The FLINT team, “GR_FRACTION_NO_REDUCTION, GR_FRACTION_STRONGLY_CANONICAL (gr.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/gr_domains/GR_FRACTION_NO_REDUCTION.html (generated 2026-10-20).