gr_vec_set_shallow
Synopsis
#include <flint/gr_vec.h>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).
@misc{flint-doc-gr-vec-gr-vec-set-shallow,
author = {{The FLINT team}},
title = {{gr\_vec\_set\_shallow (gr\_vec.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/gr_vec/gr_vec_set_shallow.html},
note = {Generated 2026-10-20}
}