FLINT3.7.0-dev

gr_ore_poly_swap, gr_ore_poly_set_shallow

Synopsis#include <flint/gr_ore_poly.h>
void gr_ore_poly_swap(gr_ore_poly_t poly1, gr_ore_poly_t poly2, gr_ore_poly_ctx_t ctx)source
void gr_ore_poly_set_shallow(gr_ore_poly_t res, const gr_ore_poly_t x, const gr_ore_poly_ctx_t ctx)source

Swap two Ore polynomials in constant time, and make res a shallow copy of x sharing its coefficients.

Cite this page

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