gr_mpoly_swap, gr_mpoly_set_shallow
Synopsis
#include <flint/gr_mpoly.h>void gr_mpoly_swap(gr_mpoly_t A, gr_mpoly_t B, gr_mpoly_ctx_t ctx)sourcevoid gr_mpoly_set_shallow(gr_mpoly_t res, const gr_mpoly_t poly, gr_mpoly_ctx_t ctx)sourceSwap two polynomials in constant time, and make res a shallow copy of poly sharing its arrays (which must then not be cleared twice).
Cite this page
The FLINT team, “gr_mpoly_swap, gr_mpoly_set_shallow (gr_mpoly.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/gr_mpoly/gr_mpoly_swap.html (generated 2026-10-20).
@misc{flint-doc-gr-mpoly-gr-mpoly-swap,
author = {{The FLINT team}},
title = {{gr\_mpoly\_swap, gr\_mpoly\_set\_shallow (gr\_mpoly.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/gr_mpoly/gr_mpoly_swap.html},
note = {Generated 2026-10-20}
}