FLINT3.7.0-dev

_gr_poly_tree_alloc, _gr_poly_tree_free, _gr_poly_tree_build

Synopsis#include <flint/gr_poly.h>
gr_ptr * _gr_poly_tree_alloc(slong len, gr_ctx_t ctx)source
void _gr_poly_tree_free(gr_ptr * tree, slong len, gr_ctx_t ctx)source
int _gr_poly_tree_build(gr_ptr * tree, gr_srcptr roots, slong len, gr_ctx_t ctx)source

Allocate, free and fill the subproduct tree of len points roots: level 0 holds the linear polynomials x - x_i and each higher level the products of pairs of the level below.

Cite this page

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