Issue with c++11 header random.h

Ed Smith-Rowland 3dw4rd@verizon.net
Mon Dec 3 17:03:00 GMT 2012


On 12/03/2012 11:29 AM, Paolo Carlini wrote:
> Hi,
>
> On 12/03/2012 04:54 PM, Nolen, Steven D wrote:
>> In the c++11 headers for the random number generation (random.h), the 
>> function "discard" for the linear_congruential has been implemented 
>> in a very inefficient manner.
> As I mentioned when we optimized a while ago the discard member 
> function for the statistically much more solid mersenne_twister 
> engine, most of the discard are still just trivial implementations of 
> the specs, that is rather well know. On the other hand, we didn't take 
> code from Boost for our implementation and I don't think we are 
> starting now. Thus, if you want to see progress on this specific 
> discard, I would recommend either contributing a patch, if the issue 
> is simple enough for you to handle, or filing an appropriate Bugzilla 
> entry with a description of the optimization, then somebody will 
> contribute an implementation.
>
> Thanks!
> Paolo.
>
Greetings,

Thank you for your concern about the random facility.

A link to a reference paper or two would help if you don't want to/can't 
contribute a patch.

Thanks,
Ed



More information about the Gcc mailing list