mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2025-08-03 12:49:50 +00:00
fix coding styles
This commit is contained in:
parent
a2b368a7cc
commit
e3e130f58d
80 changed files with 255 additions and 255 deletions
|
@ -115,10 +115,10 @@ namespace sprout {
|
|||
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
|
||||
} // namespace random
|
||||
|
||||
using sprout::random::additive_combine_engine;
|
||||
using sprout::random::ecuyer1988;
|
||||
} // namespace sprout
|
||||
} // namespace sprout
|
||||
|
||||
#endif // #ifndef SPROUT_RANDOM_ADDITIVE_COMBINE_HPP
|
||||
#endif // #ifndef SPROUT_RANDOM_ADDITIVE_COMBINE_HPP
|
||||
|
|
|
@ -144,4 +144,4 @@ namespace sprout {
|
|||
using sprout::random::bernoulli_distribution;
|
||||
} // namespace sprout
|
||||
|
||||
#endif // #ifndef SPROUT_RANDOM_BERNOULLI_DISTRIBUTION_HPP
|
||||
#endif // #ifndef SPROUT_RANDOM_BERNOULLI_DISTRIBUTION_HPP
|
||||
|
|
|
@ -683,4 +683,4 @@ namespace sprout {
|
|||
using sprout::random::binomial_distribution;
|
||||
} // namespace sprout
|
||||
|
||||
#endif // #ifndef SPROUT_RANDOM_BINOMIAL_DISTRIBUTION_HPP
|
||||
#endif // #ifndef SPROUT_RANDOM_BINOMIAL_DISTRIBUTION_HPP
|
||||
|
|
|
@ -10,9 +10,9 @@ namespace sprout {
|
|||
// default_random_engine
|
||||
//
|
||||
typedef sprout::random::minstd_rand0 default_random_engine;
|
||||
} // namespace random
|
||||
} // namespace random
|
||||
|
||||
using sprout::random::default_random_engine;
|
||||
} // namespace sprout
|
||||
} // namespace sprout
|
||||
|
||||
#endif // #ifndef SPROUT_RANDOM_DEFAULT_RANDOM_ENGINE_HPP
|
||||
#endif // #ifndef SPROUT_RANDOM_DEFAULT_RANDOM_ENGINE_HPP
|
||||
|
|
|
@ -204,8 +204,8 @@ namespace sprout {
|
|||
private:
|
||||
const_mod() SPROUT_DELETED_FUNCTION_DECL
|
||||
};
|
||||
} // namespace detail
|
||||
} // namespace random
|
||||
} // namespace sprout
|
||||
} // namespace detail
|
||||
} // namespace random
|
||||
} // namespace sprout
|
||||
|
||||
#endif // #ifndef SPROUT_RANDOM_DETAIL_CONST_MOD_HPP
|
||||
#endif // #ifndef SPROUT_RANDOM_DETAIL_CONST_MOD_HPP
|
||||
|
|
|
@ -19,4 +19,4 @@ namespace sprout {
|
|||
} // namespace random
|
||||
} // namespace sprout
|
||||
|
||||
#endif // #ifndef SPROUT_RANDOM_DETAIL_GENERATOR_BITS_HPP
|
||||
#endif // #ifndef SPROUT_RANDOM_DETAIL_GENERATOR_BITS_HPP
|
||||
|
|
|
@ -69,4 +69,4 @@ namespace sprout {
|
|||
} // namespace random
|
||||
} // namespace sprout
|
||||
|
||||
#endif // #ifndef SPROUT_RANDOM_DETAIL_PTR_HELPER_HPP
|
||||
#endif // #ifndef SPROUT_RANDOM_DETAIL_PTR_HELPER_HPP
|
||||
|
|
|
@ -55,8 +55,8 @@ namespace sprout {
|
|||
;
|
||||
}
|
||||
};
|
||||
} // namespace detail
|
||||
} // namespace random
|
||||
} // namespace sprout
|
||||
} // namespace detail
|
||||
} // namespace random
|
||||
} // namespace sprout
|
||||
|
||||
#endif // SPROUT_RANDOM_DETAIL_SIGNED_UNSIGNED_TOOLS_HPP
|
||||
#endif // SPROUT_RANDOM_DETAIL_SIGNED_UNSIGNED_TOOLS_HPP
|
||||
|
|
|
@ -65,8 +65,8 @@ namespace sprout {
|
|||
return generate(rng_());
|
||||
}
|
||||
};
|
||||
} // namespace detail
|
||||
} // namespace random
|
||||
} // namespace sprout
|
||||
} // namespace detail
|
||||
} // namespace random
|
||||
} // namespace sprout
|
||||
|
||||
#endif // #ifndef SPROUT_RANDOM_DETAIL_UNIFORM_INT_FLOAT_HPP
|
||||
#endif // #ifndef SPROUT_RANDOM_DETAIL_UNIFORM_INT_FLOAT_HPP
|
||||
|
|
|
@ -11,4 +11,4 @@
|
|||
#include <sprout/random/geometric_distribution.hpp>
|
||||
#include <sprout/random/normal_distribution.hpp>
|
||||
|
||||
#endif // #ifndef SPROUT_RANDOM_DISTRIBUTION_HPP
|
||||
#endif // #ifndef SPROUT_RANDOM_DISTRIBUTION_HPP
|
||||
|
|
|
@ -12,4 +12,4 @@
|
|||
#include <sprout/random/taus88.hpp>
|
||||
#include <sprout/random/default_random_engine.hpp>
|
||||
|
||||
#endif // #ifndef SPROUT_RANDOM_ENGINE_HPP
|
||||
#endif // #ifndef SPROUT_RANDOM_ENGINE_HPP
|
||||
|
|
|
@ -157,4 +157,4 @@ namespace sprout {
|
|||
using sprout::random::geometric_distribution;
|
||||
} // namespace sprout
|
||||
|
||||
#endif // #ifndef SPROUT_RANDOM_GEOMETRIC_DISTRIBUTION_HPP
|
||||
#endif // #ifndef SPROUT_RANDOM_GEOMETRIC_DISTRIBUTION_HPP
|
||||
|
|
|
@ -120,10 +120,10 @@ namespace sprout {
|
|||
// hellekalek1995
|
||||
//
|
||||
typedef sprout::random::inversive_congruential_engine<std::uint32_t, 9102, 2147483647 - 36884165, 2147483647> hellekalek1995;
|
||||
} // namespace random
|
||||
} // namespace random
|
||||
|
||||
using sprout::random::inversive_congruential_engine;
|
||||
using sprout::random::hellekalek1995;
|
||||
} // namespace sprout
|
||||
} // namespace sprout
|
||||
|
||||
#endif // #ifndef SPROUT_RANDOM_INVERSIVE_CONGRUENTIAL_HPP
|
||||
#endif // #ifndef SPROUT_RANDOM_INVERSIVE_CONGRUENTIAL_HPP
|
||||
|
|
|
@ -64,4 +64,4 @@ namespace sprout {
|
|||
} // namespace random
|
||||
} // namespace sprout
|
||||
|
||||
#endif // #ifndef SPROUT_RANDOM_ITERATOR_HPP
|
||||
#endif // #ifndef SPROUT_RANDOM_ITERATOR_HPP
|
||||
|
|
|
@ -205,12 +205,12 @@ namespace sprout {
|
|||
return lhs << rhs.lcf_;
|
||||
}
|
||||
};
|
||||
} // namespace random
|
||||
} // namespace random
|
||||
|
||||
using sprout::random::linear_congruential_engine;
|
||||
using sprout::random::minstd_rand0;
|
||||
using sprout::random::minstd_rand;
|
||||
using sprout::random::rand48;
|
||||
} // namespace sprout
|
||||
} // namespace sprout
|
||||
|
||||
#endif // #ifndef SPROUT_RANDOM_LINEAR_CONGRUENTIAL_HPP
|
||||
#endif // #ifndef SPROUT_RANDOM_LINEAR_CONGRUENTIAL_HPP
|
||||
|
|
|
@ -107,9 +107,9 @@ namespace sprout {
|
|||
SPROUT_CONSTEXPR_OR_CONST int sprout::random::linear_feedback_shift_engine<UIntType, w, k, q, s>::step_size;
|
||||
template<typename UIntType, int w, int k, int q, int s>
|
||||
SPROUT_CONSTEXPR_OR_CONST UIntType sprout::random::linear_feedback_shift_engine<UIntType, w, k, q, s>::default_seed;
|
||||
} // namespace random
|
||||
} // namespace random
|
||||
|
||||
using sprout::random::linear_feedback_shift_engine;
|
||||
} // namespace sprout
|
||||
} // namespace sprout
|
||||
|
||||
#endif // #ifndef SPROUT_RANDOM_LINEAR_FEEDBACK_SHIFT_HPP
|
||||
#endif // #ifndef SPROUT_RANDOM_LINEAR_FEEDBACK_SHIFT_HPP
|
||||
|
|
|
@ -604,4 +604,4 @@ namespace sprout {
|
|||
using sprout::random::mt19937_64;
|
||||
} // namespace sprout
|
||||
|
||||
#endif // #ifndef SPROUT_RANDOM_MERSENNE_TWISTER_HPP
|
||||
#endif // #ifndef SPROUT_RANDOM_MERSENNE_TWISTER_HPP
|
||||
|
|
|
@ -246,4 +246,4 @@ namespace sprout {
|
|||
using sprout::random::normal_distribution;
|
||||
} // namespace sprout
|
||||
|
||||
#endif // #ifndef SPROUT_RANDOM_NORMAL_DISTRIBUTION_HPP
|
||||
#endif // #ifndef SPROUT_RANDOM_NORMAL_DISTRIBUTION_HPP
|
||||
|
|
|
@ -317,4 +317,4 @@ namespace sprout {
|
|||
using sprout::random::random_result;
|
||||
} // namespace sprout
|
||||
|
||||
#endif // #ifndef SPROUT_RANDOM_RANDOM_RESULT_HPP
|
||||
#endif // #ifndef SPROUT_RANDOM_RANDOM_RESULT_HPP
|
||||
|
|
|
@ -45,4 +45,4 @@ namespace sprout {
|
|||
} // namespace random
|
||||
} // namespace sprout
|
||||
|
||||
#endif // #ifndef SPROUT_RANDOM_RANGE_HPP
|
||||
#endif // #ifndef SPROUT_RANDOM_RANGE_HPP
|
||||
|
|
|
@ -192,11 +192,11 @@ namespace sprout {
|
|||
// kreutzer1986
|
||||
//
|
||||
typedef sprout::random::shuffle_order_engine<sprout::random::linear_congruential_engine<std::uint32_t, 1366, 150889, 714025>, 97> kreutzer1986;
|
||||
} // namespace random
|
||||
} // namespace random
|
||||
|
||||
using sprout::random::shuffle_order_engine;
|
||||
using sprout::random::knuth_b;
|
||||
using sprout::random::kreutzer1986;
|
||||
} // namespace sprout
|
||||
} // namespace sprout
|
||||
|
||||
#endif // #ifndef SPROUT_RANDOM_SHUFFLE_ORDER_HPP
|
||||
#endif // #ifndef SPROUT_RANDOM_SHUFFLE_ORDER_HPP
|
||||
|
|
|
@ -22,9 +22,9 @@ namespace sprout {
|
|||
sprout::random::linear_feedback_shift_engine<std::uint32_t, 32, 28, 3, 17>,
|
||||
0
|
||||
> taus88;
|
||||
} // namespace random
|
||||
} // namespace random
|
||||
|
||||
using sprout::random::taus88;
|
||||
} // namespace sprout
|
||||
} // namespace sprout
|
||||
|
||||
#endif // #ifndef SPROUT_RANDOM_TAUS88_HPP
|
||||
#endif // #ifndef SPROUT_RANDOM_TAUS88_HPP
|
||||
|
|
|
@ -161,4 +161,4 @@ namespace sprout {
|
|||
using sprout::random::uniform_01;
|
||||
} // namespace sprout
|
||||
|
||||
#endif // #ifndef SPROUT_RANDOM_UNIFORM_01_HPP
|
||||
#endif // #ifndef SPROUT_RANDOM_UNIFORM_01_HPP
|
||||
|
|
|
@ -426,4 +426,4 @@ namespace sprout {
|
|||
using sprout::random::uniform_int_distribution;
|
||||
} // namespace sprout
|
||||
|
||||
#endif // #ifndef SPROUT_RANDOM_UNIFORM_INT_DISTRIBUTION_HPP
|
||||
#endif // #ifndef SPROUT_RANDOM_UNIFORM_INT_DISTRIBUTION_HPP
|
||||
|
|
|
@ -313,4 +313,4 @@ namespace sprout {
|
|||
using sprout::random::uniform_real_distribution;
|
||||
} // namespace sprout
|
||||
|
||||
#endif // #ifndef SPROUT_RANDOM_UNIFORM_REAL_DISTRIBUTION_HPP
|
||||
#endif // #ifndef SPROUT_RANDOM_UNIFORM_REAL_DISTRIBUTION_HPP
|
||||
|
|
|
@ -256,4 +256,4 @@ namespace sprout {
|
|||
using sprout::random::uniform_smallint;
|
||||
} // namespace sprout
|
||||
|
||||
#endif // #ifndef SPROUT_RANDOM_UNIFORM_SMALLINT_HPP
|
||||
#endif // #ifndef SPROUT_RANDOM_UNIFORM_SMALLINT_HPP
|
||||
|
|
|
@ -86,4 +86,4 @@ namespace sprout {
|
|||
using sprout::random::variate_generator;
|
||||
} // namespace sprout
|
||||
|
||||
#endif // #ifndef SPROUT_RANDOM_VARIATE_GENERATOR_HPP
|
||||
#endif // #ifndef SPROUT_RANDOM_VARIATE_GENERATOR_HPP
|
||||
|
|
|
@ -99,9 +99,9 @@ namespace sprout {
|
|||
SPROUT_CONSTEXPR_OR_CONST int sprout::random::xor_combine_engine<URNG1, s1, URNG2, s2>::shift1;
|
||||
template<typename URNG1, int s1, typename URNG2, int s2>
|
||||
SPROUT_CONSTEXPR_OR_CONST int sprout::random::xor_combine_engine<URNG1, s1, URNG2, s2>::shift2;
|
||||
} // namespace random
|
||||
} // namespace random
|
||||
|
||||
using sprout::random::xor_combine_engine;
|
||||
} // namespace sprout
|
||||
} // namespace sprout
|
||||
|
||||
#endif // #ifndef SPROUT_RANDOM_XOR_COMBINE_HPP
|
||||
#endif // #ifndef SPROUT_RANDOM_XOR_COMBINE_HPP
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue