
-----Original Message----- From: boost-bounces@lists.boost.org [mailto:boost-bounces@lists.boost.org] On Behalf Of Ross Levine Sent: 14 January 2009 20:13 To: boost@lists.boost.org Subject: Re: [boost] [random] A much faster Poisson variate generation
I have removed the MPL: the code was there to use an int instead of a long for the factorial lookup table if the size of an int was large enough. Ultimately, the rare case in which this would be useful (when 8 <= sizeof(int) < sizeof(long)) is not worth code that won't compile on some compilers. The class now has an empty reset() member function for compatibility, and passes random_test.cpp's test_main function as well, and can serve as a drop-in replacement of the existing poisson_distribution.hpp file. Notably, operator<< and operator>> are compatible with the old version, streaming only the mean.
Sounds good to me, but
I am unaware of how to officially submit this header, and where to change documentation.
I think you should contact the original author if possible - direct as your note hasn't produced a response. Ask again on the list if you fail to contact him. Paul --- Paul A. Bristow Prizet Farmhouse Kendal, UK LA8 8AB +44 1539 561830, mobile +44 7714330204 pbristow@hetp.u-net.com