Skip to content

Massive speedup for calculations involving many numbers with uncertainties

Compare
Choose a tag to compare
@lebigot lebigot released this 15 Aug 20:56
· 327 commits to master since this release

A calculation like str(sum(ufloat(1, 1) for _ in xrange(100000))) is now about 5,000 faster than with the latest release (version 2.4.8.1).

More generally, the calculation time of such sums (and more generally of complex expressions involving many numbers with uncertainty) is now linear instead of quadratic, and much faster in absolute time.

This closes issue #30.