Boost logo

Boost Users :

Subject: Re: [Boost-users] Mersenne twister problem
From: Matthias Troyer (troyer_at_[hidden])
Date: 2009-09-18 05:34:01


On Sep 18, 2009, at 11:30 AM, ruya wrote:

>
> Hi
>
> The problem was the missing copy constructor, which I usually write by
> default but for some reason had it commented. I still don't
> understand why
> it didn't happened with the remaining algorithms but anyway, thank
> you for
> the help on the fault.

You also need to implement the assignment operator

> Now, for the code refactoring, if the generator is static all SFs
> will share
> the same generator and the distributions will not be independent
> anymore,
> which is a requisite in this kind of algorithm.

Actually, as long as the generator is good they are uncorrelated. At
least this is what is tested for. This is tested much better than
correlations between different seeds.

Matthias


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net