[random] comments on speed?
Sorry if double posted... Can anyone who have tried Boost's `random' library have any thoughts on its speed? I looked into its binomial variate function and apparently it actualy flips a (biased) coin countless times to generate it. I am not an expert in this, but this seems awfully slow for high n's. (Not to mention that I could have done it myself.) AFAIK there are fast and good algorithms/approximations for generating some non-uniform variates. Are any of these at least planned to be included? <OT> I've found some papers on fast binomial generators, but that takes some serious time and effort to translate into working code. As I don't want to reinvent the wheel, if you know of any publicly available libraries for it, let me know. </OT> Thanks, Sanyi
Hi, What are the advantages of Boost binder library over STL binder library? Thanks. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Hi! It seems like there is an error in the documentation about boost::tuples::access_traits<T>. The documentation describes the type boost::tuples::access_traits<T>::type owever, in the source code, there is no such type. It is rather boost::tuples::access_traits<T>::non_const_type -- François Duranleau LIGUM, Université de Montréal "'Reality' is the temporary resultant of continuous struggles between rival gangs of programmers." - Robert Anton Wilson, _Prometheus Rising_, 1983
On Thu, 26 Jan 2006, François Duranleau wrote:
It seems like there is an error in the documentation about boost::tuples::access_traits<T>. The documentation describes the type
boost::tuples::access_traits<T>::type
however, in the source code, there is no such type. It is rather
boost::tuples::access_traits<T>::non_const_type
I forgot to mention that this is for Boost version 1.33.1. -- François Duranleau LIGUM, Université de Montréal "There, now you have a top and a bottom! But you've lost a degree of your freedom. Now you must stand on the ground. But now you feel easier, don't you? You have less to trouble your mind." - from _Neon Genesis Evangelion_
participants (3)
-
François Duranleau
-
Sanyi
-
yinglcs2@yahoo.com