Boost logo

Boost :

Subject: Re: [boost] [random] A much faster Poisson variate generation
From: Paul A. Bristow (pbristow_at_[hidden])
Date: 2009-01-21 10:35:28


> -----Original Message-----
> From: boost-bounces_at_[hidden] [mailto:boost-bounces_at_[hidden]]
On
> Behalf Of Ross Levine
> Sent: 14 January 2009 20:13
> To: boost_at_[hidden]
> 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_at_[hidden]

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk