gr_set_ui, gr_set_si, gr_set_fmpz, gr_set_fmpq, gr_set_d
Synopsis
#include <flint/gr.h>Set res to the image of the integer, rational or double x in the ring.
Guides#
- Using ca (
ca) - Ball semantics, nonfinite values and domains (
dfloat) - Using dfloat (
dfloat) - Getting started with generic rings
- Implementing a ring
- Getting started (
gr_dft) - Using mpn_mod (
mpn_mod) - Getting started with nfloat (
nfloat)
Cite this page
The FLINT team, “gr_set_ui, gr_set_si, gr_set_fmpz, gr_set_fmpq, gr_set_d (gr.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/gr/gr_set_ui.html (generated 2026-10-20).
@misc{flint-doc-gr-gr-set-ui,
author = {{The FLINT team}},
title = {{gr\_set\_ui, gr\_set\_si, gr\_set\_fmpz, gr\_set\_fmpq, gr\_set\_d (gr.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/gr/gr_set_ui.html},
note = {Generated 2026-10-20}
}