FLINT3.7.0-dev

gr_set_shallow

Synopsis#include <flint/gr.h>
void gr_set_shallow(gr_ptr res, gr_srcptr x, gr_ctx_t ctx)source

Copies the bytes of x to res (by default with memcpy), so that both share any memory owned by x. res must not be initialised or cleared independently afterwards; this is for building temporary views.

Guides#

Cite this page

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