FLINT3.7.0-dev

HEAP_LEFT, HEAP_RIGHT, HEAP_PARENT, HEAP_ASSIGN

Synopsis#include <flint/mpoly.h>
HEAP_LEFT(i)source
HEAP_RIGHT(i)source
HEAP_PARENT(i)source
HEAP_ASSIGN(h, c1, c2)source

Index arithmetic for a binary heap stored from index 1 (2i, 2i + 1, \lfloor i/2 \rfloor), and assignment of the monomial c1 and chain c2 to the heap entry h.

Cite this page

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