mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2025-08-03 12:49:50 +00:00
add stringize preprocessor
add random using add some headers
This commit is contained in:
parent
1766ed43a4
commit
89e2be54fa
24 changed files with 166 additions and 7 deletions
|
@ -96,12 +96,13 @@ namespace sprout {
|
|||
//
|
||||
// ecuyer1988
|
||||
//
|
||||
typedef additive_combine_engine<
|
||||
typedef sprout::random::additive_combine_engine<
|
||||
sprout::random::linear_congruential_engine<std::uint32_t, 40014, 0, 2147483563>,
|
||||
sprout::random::linear_congruential_engine<std::uint32_t, 40692, 0, 2147483399>
|
||||
> ecuyer1988;
|
||||
} // namespace random
|
||||
|
||||
using sprout::random::additive_combine_engine;
|
||||
using sprout::random::ecuyer1988;
|
||||
} // namespace sprout
|
||||
|
||||
|
|
|
@ -125,6 +125,7 @@ namespace sprout {
|
|||
typedef sprout::random::inversive_congruential_engine<std::uint32_t, 9102, 2147483647 - 36884165, 2147483647> hellekalek1995;
|
||||
} // namespace random
|
||||
|
||||
using sprout::random::inversive_congruential_engine;
|
||||
using sprout::random::hellekalek1995;
|
||||
} // namespace sprout
|
||||
|
||||
|
|
|
@ -211,6 +211,7 @@ namespace sprout {
|
|||
};
|
||||
} // namespace random
|
||||
|
||||
using sprout::random::linear_congruential_engine;
|
||||
using sprout::random::minstd_rand0;
|
||||
using sprout::random::minstd_rand;
|
||||
using sprout::random::rand48;
|
||||
|
|
|
@ -107,6 +107,8 @@ namespace sprout {
|
|||
template<typename UIntType, int w, int k, int q, int s>
|
||||
SPROUT_CONSTEXPR UIntType sprout::random::linear_feedback_shift_engine<UIntType, w, k, q, s>::default_seed;
|
||||
} // namespace random
|
||||
|
||||
using sprout::random::linear_feedback_shift_engine;
|
||||
} // namespace sprout
|
||||
|
||||
#endif // #ifndef SPROUT_RANDOM_LINEAR_FEEDBACK_SHIFT_HPP
|
||||
|
|
|
@ -459,6 +459,7 @@ namespace sprout {
|
|||
> mt19937_64;
|
||||
} // namespace random
|
||||
|
||||
using sprout::random::mersenne_twister_engine;
|
||||
using sprout::random::mt11213b;
|
||||
using sprout::random::mt19937;
|
||||
using sprout::random::mt19937_64;
|
||||
|
|
|
@ -171,13 +171,14 @@ namespace sprout {
|
|||
//
|
||||
// knuth_b
|
||||
//
|
||||
typedef shuffle_order_engine<sprout::random::minstd_rand0, 256> knuth_b;
|
||||
typedef sprout::random::shuffle_order_engine<sprout::random::minstd_rand0, 256> knuth_b;
|
||||
//
|
||||
// kreutzer1986
|
||||
//
|
||||
typedef sprout::random::shuffle_order_engine<sprout::random::linear_congruential_engine<std::uint32_t, 1366, 150889, 714025>, 97> kreutzer1986;
|
||||
} // namespace random
|
||||
|
||||
using sprout::random::shuffle_order_engine;
|
||||
using sprout::random::knuth_b;
|
||||
using sprout::random::kreutzer1986;
|
||||
} // namespace sprout
|
||||
|
|
|
@ -85,6 +85,8 @@ namespace sprout {
|
|||
template<typename URNG1, int s1, typename URNG2, int s2>
|
||||
SPROUT_CONSTEXPR int sprout::random::xor_combine_engine<URNG1, s1, URNG2, s2>::shift2;
|
||||
} // namespace random
|
||||
|
||||
using sprout::random::xor_combine_engine;
|
||||
} // namespace sprout
|
||||
|
||||
#endif // #ifndef SPROUT_RANDOM_XOR_COMBINE_HPP
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue