FLINT3.7.0-dev

d1_renorm, d2_renorm, d3_renorm, d4_renorm

Synopsis#include <flint/dfloat.h>
void d1_renorm(d1_t res, double * t, slong len)
void d2_renorm(d2_t res, double * t, slong len)
void d3_renorm(d3_t res, double * t, slong len)
void d4_renorm(d4_t res, double * t, slong len)

Sets res to the sum of the len doubles t_0, \ldots, t_{len-1}, rounded to N nonoverlapping components; the dropped part is discarded. The terms may be in any order, but for an accurate result they should be roughly sorted by decreasing magnitude. The array t is used as scratch space and overwritten; pass a copy if the terms are needed afterwards. res must not overlap t.

Cite this page

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