OpenMPCD
minstd.hpp
Go to the documentation of this file.
1 /**
2  * @file
3  * Defines the `OpenMPCD::CUDA::Random::Generators::minstd_rand` and
4  * `OpenMPCD::CUDA::Random::Generators::minstd_rand0` classes.
5  */
6 
7 #ifndef OPENMPCD_CUDA_RANDOM_GENERATORS_MINSTD_HPP
8 #define OPENMPCD_CUDA_RANDOM_GENERATORS_MINSTD_HPP
9 
11 
12 #include <boost/cstdint.hpp>
13 
14 namespace OpenMPCD
15 {
16 namespace CUDA
17 {
18 namespace Random
19 {
20 namespace Generators
21 {
22 
23 typedef
24  LinearCongruent<boost::uint_fast32_t, 48271, 0, 2147483647>
26  ///< Generator corresponding to `std::minstd_rand`.
27 typedef
30  ///< Generator corresponding to `std::minstd_rand0`.
31 
32 } //namespace Generators
33 } //namespace Random
34 } //namespace CUDA
35 } //namespace OpenMPCD
36 
37 
38 #endif //OPENMPCD_CUDA_RANDOM_GENERATORS_MINSTD_HPP
LinearCongruent.hpp
OpenMPCD::CUDA::Random::Generators::minstd_rand
LinearCongruent< boost::uint_fast32_t, 48271, 0, 2147483647 > minstd_rand
Generator corresponding to std::minstd_rand.
Definition: minstd.hpp:25
OpenMPCD::CUDA::Random::Generators::LinearCongruent
A linear congruential generator (LCG).
Definition: LinearCongruent.hpp:54
OpenMPCD::CUDA::Random::Generators::minstd_rand0
LinearCongruent< boost::uint_fast32_t, 16807, 0, 2147483647 > minstd_rand0
Generator corresponding to std::minstd_rand0.
Definition: minstd.hpp:29