FLINT3.7.0-dev

gr_vec_set_shallow

Synopsis#include <flint/gr_vec.h>
void gr_vec_set_shallow(gr_vec_t res, const gr_vec_t src, gr_ctx_t ctx)source

Resizes res to the length of src and copies the bytes of the entries of src into it, without copying owned data, so that both vectors share the memory owned by the entries. The previous contents of res are overwritten without being freed. For temporary views; res must not be cleared while src is in use, and not at all if the entries own memory.

Cite this page

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