FLINT3.7.0-dev

gr_canonical_associate

Synopsis#include <flint/gr.h>
int gr_canonical_associate(gr_ptr res1, gr_ptr res2, gr_srcptr x, gr_ctx_t ctx)source

Sets res1 to a canonical representative u x of the class of x under multiplication by units and res2 to the unit u. For x = 0 sets res1 to 0 and res2 to 1. Fraction fields use it to normalise denominators.

Cite this page

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