This is the mail archive of the gsl-discuss@sourceware.org mailing list for the GSL 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: Random number generators


Heiko Bauke writes:
 > some years ago I provided some patches for serveral pseudo-random number
 > generators.  In these patches I focussed on correctness and portability
 > not on performance.  
 > 
 > For (multiple) linear congruential generators with prime moduls a seedup
 > up to a factor 15 can be gained by switching from a implementation that
 > uses 32-bit arithmetic to 64-bit arithmetic.  The source files attached
 > to this mail contain compile time switches, that check if the data type
 > long long is available and choose a 64-bit implementation if
 > appropriate.

Hello,

Thanks, I'll update the documentation.  For the simple generators I
don't think it is worth trying to optimise the code itself for
64-bits, as they are only examples.  If there are some optimisations
for ranlux I'd add them.

-- 
Brian Gough


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