This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Issue with c++11 header random.h


On Mon, Dec 3, 2012 at 10:54 AM, Nolen, Steven D <drnuke@lanl.gov> 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.  Many modern Monte Carlo codes require this function to work efficiently across large strides through the random number stream.  A direct approach is available through the Boost headers and has been documented in the literature.  I would request that this function be reimplemented before more users discover it on accident as they transition from the boost headers to the c++11 ones you provide.

This probably should be opened as a libstdc++ enhancement request in
GCC Bugzilla.

Can LANL write and contribute a better implementation or contract
someone to do so?

Thanks, David


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]