FLINT3.7.0-dev

fmpq_swap

Synopsis#include <flint/fmpq.h>
void fmpq_swap(fmpq_t op1, fmpq_t op2)source

Swaps op1 and op2 efficiently (only the structs are exchanged).

Cite this page

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