
-----Original Message----- From: boost-bounces@lists.boost.org [mailto:boost-bounces@lists.boost.org] On Behalf Of rodrigue pons Sent: Tuesday, October 27, 2009 5:49 PM To: boost@lists.boost.org Subject: [boost] boost.math
i need to implement the computation of huges series. These series are made of floats, and thus the error propagates. The problem is that the main constrain is the execution time, thus i must use the more "native" type possible. Is boost.math offer a solution to minimize this error? Which type of float (float, double, any structure?) must i use?
I feel sure that in raw compute speed, hardware built-in float and double will be fastest, and probably double as fast as float. More precise types like NTL RR and GMP are usually *very* much slower, but the improved precision might make them worth it. But I suspect that you will only find out which is best by trying it out on the hardware you have available. At least the Boost.Math makes changing float type quite easy :-) HTH - FWIW Paul --- Paul A. Bristow Prizet Farmhouse Kendal, UK LA8 8AB +44 1539 561830, mobile +44 7714330204 pbristow@hetp.u-net.com