Home
last modified time | relevance | path

Searched refs:random_engine (Results 1 – 25 of 61) sorted by relevance

123

/dports/science/pagmo2/pagmo2-2.18.0/tests/
H A Dgenetic_operators.cpp42 detail::random_engine_type random_engine(32u); in BOOST_AUTO_TEST_CASE() local
46 …x_crossover({0.1, 0.2, 3}, {0.2, 2.2, -1}, {{-2, -2, -2}, {3, 3, 3}}, 1u, 0.9, 10, random_engine)); in BOOST_AUTO_TEST_CASE()
48 … sbx_crossover({0.1, 0.2}, {0.2, 2.2, -1}, {{-2, -2, -2}, {3, 3, 3}}, 1u, 0.9, 10, random_engine), in BOOST_AUTO_TEST_CASE()
58 … sbx_crossover({0.1, 0.2, 0.3}, {0.2, 2.2, -1}, {{-2, -2}, {3, 3, 3}}, 1u, 0.9, 10, random_engine), in BOOST_AUTO_TEST_CASE()
63 … sbx_crossover({0.1, 0.2, 0.3}, {0.2, 2.2, -1}, {{-2, -2}, {3, 3}}, 1u, 0.9, 10, random_engine), in BOOST_AUTO_TEST_CASE()
125 detail::random_engine_type random_engine(32u); in BOOST_AUTO_TEST_CASE() local
129 …OST_CHECK_NO_THROW(polynomial_mutation(dv, {{-2, -2, -2}, {3, 3, 3}}, 1u, 0.9, 10, random_engine)); in BOOST_AUTO_TEST_CASE()
134 … BOOST_CHECK_EXCEPTION(polynomial_mutation(dv, {{-2, -2}, {3, 3, 3}}, 1u, 0.9, 10, random_engine), in BOOST_AUTO_TEST_CASE()
139 … polynomial_mutation(dv, {{-2, -2}, {3, 3}}, 1u, 0.9, 10, random_engine), std::invalid_argument, in BOOST_AUTO_TEST_CASE()
144 …ST_CHECK_EXCEPTION(polynomial_mutation(dv, {{nan, -2, -2}, {3, 3, 3}}, 1u, 0.9, 10, random_engine), in BOOST_AUTO_TEST_CASE()
[all …]
/dports/science/pagmo2/pagmo2-2.18.0/src/utils/
H A Dgenetic_operators.cpp106 rand01 = drng(random_engine); in sbx_crossover_impl()
119 if (drng(random_engine) < .5) { in sbx_crossover_impl()
132 site1 = ra_num(random_engine); in sbx_crossover_impl()
133 site2 = ra_num(random_engine); in sbx_crossover_impl()
150 detail::random_engine_type &random_engine) in polynomial_mutation_impl() argument
165 if (drng(random_engine) < p_m && lb[j] != ub[j]) { in polynomial_mutation_impl()
171 rnd = drng(random_engine); in polynomial_mutation_impl()
191 if (drng(random_engine) < p_m) { in polynomial_mutation_impl()
193 auto mutated = uniform_integral_from_range(lb[j], ub[j], random_engine); in polynomial_mutation_impl()
210 return ((drng(random_engine) < 0.5) ? idx1 : idx2); in mo_tournament_selection_impl()
[all …]
/dports/biology/diamond/diamond-2.0.13/src/test/
H A Dsimulate.cpp61 vector<Letter> generate_random_seq(size_t length, std::minstd_rand0 &random_engine) in generate_random_seq() argument
66 seq.push_back(get_distribution<20>(score_matrix.background_freqs(), random_engine)); in generate_random_seq()
79 vector<Letter> simulate_homolog(const Sequence &seq, double id, std::minstd_rand0 &random_engine) in simulate_homolog() argument
89 out.push_back(dist(random_engine)); in simulate_homolog()
91 out.push_back(get_distribution<20>(subst_freq[(size_t)seq[i]], random_engine)); in simulate_homolog()
102 std::minstd_rand0 random_engine; in mutate() local
105 const double i = id_dist(random_engine); in mutate()
106 …Util::Seq::format(Sequence(simulate_homolog(Sequence(seq), i, random_engine)), std::to_string(int(… in mutate()
/dports/games/emptyepsilon/SeriousProton-EE-2021.06.23/src/
H A Drandom.cpp8 static std::mt19937_64 random_engine; variable
12 random_engine.seed(time(NULL)); in initRandom()
17 return std::uniform_real_distribution<float>(fmin, fmax)(random_engine); in random()
22 return std::uniform_int_distribution<>(imin, imax)(random_engine); in irandom()
/dports/devel/boost-docs/boost_1_72_0/libs/compute/test/
H A Dtest_threefry_engine.cpp26 boost::compute::threefry_engine<> random_engine(queue); in BOOST_AUTO_TEST_CASE() local
29 random_engine.generate(random_values.begin(), random_values.end(), queue); in BOOST_AUTO_TEST_CASE()
59 boost::compute::threefry_engine<> random_engine(queue); in BOOST_AUTO_TEST_CASE() local
64 random_values.begin(), random_values.end(), random_engine, queue in BOOST_AUTO_TEST_CASE()
/dports/devel/boost-python-libs/boost_1_72_0/libs/compute/test/
H A Dtest_threefry_engine.cpp26 boost::compute::threefry_engine<> random_engine(queue); in BOOST_AUTO_TEST_CASE() local
29 random_engine.generate(random_values.begin(), random_values.end(), queue); in BOOST_AUTO_TEST_CASE()
59 boost::compute::threefry_engine<> random_engine(queue); in BOOST_AUTO_TEST_CASE() local
64 random_values.begin(), random_values.end(), random_engine, queue in BOOST_AUTO_TEST_CASE()
/dports/devel/boost-libs/boost_1_72_0/libs/compute/test/
H A Dtest_threefry_engine.cpp26 boost::compute::threefry_engine<> random_engine(queue); in BOOST_AUTO_TEST_CASE() local
29 random_engine.generate(random_values.begin(), random_values.end(), queue); in BOOST_AUTO_TEST_CASE()
59 boost::compute::threefry_engine<> random_engine(queue); in BOOST_AUTO_TEST_CASE() local
64 random_values.begin(), random_values.end(), random_engine, queue in BOOST_AUTO_TEST_CASE()
/dports/devel/hyperscan/boost_1_75_0/libs/compute/test/
H A Dtest_threefry_engine.cpp26 boost::compute::threefry_engine<> random_engine(queue); in BOOST_AUTO_TEST_CASE() local
29 random_engine.generate(random_values.begin(), random_values.end(), queue); in BOOST_AUTO_TEST_CASE()
59 boost::compute::threefry_engine<> random_engine(queue); in BOOST_AUTO_TEST_CASE() local
64 random_values.begin(), random_values.end(), random_engine, queue in BOOST_AUTO_TEST_CASE()
/dports/misc/mxnet/incubator-mxnet-1.9.0/3rdparty/tvm/src/runtime/contrib/random/
H A Drandom.cc61 RandomEngine random_engine; member
95 unsigned rint = entry->random_engine.GetRandInt(); in __anond774950f0102()
109 entry->random_engine.SampleUniform(out, low, high); in __anond774950f0302()
117 entry->random_engine.SampleNormal(out, loc, scale); in __anond774950f0402()
123 entry->random_engine.RandomFill(out); in __anond774950f0502()
/dports/misc/tvm/incubator-tvm-0.6.1/src/runtime/contrib/random/
H A Drandom.cc63 RandomEngine random_engine; member
99 unsigned rint = entry->random_engine.GetRandInt(); in __anonb72b4cd40102()
115 entry->random_engine.SampleUniform(out, low, high); in __anonb72b4cd40302()
125 entry->random_engine.SampleNormal(out, loc, scale); in __anonb72b4cd40402()
/dports/misc/py-tvm/incubator-tvm-0.6.1/src/runtime/contrib/random/
H A Drandom.cc63 RandomEngine random_engine; member
99 unsigned rint = entry->random_engine.GetRandInt(); in __anonaa703fea0102()
115 entry->random_engine.SampleUniform(out, low, high); in __anonaa703fea0302()
125 entry->random_engine.SampleNormal(out, loc, scale); in __anonaa703fea0402()
/dports/net-p2p/libtorrent-rasterbar/libtorrent-rasterbar-1.2.14/include/libtorrent/
H A Drandom.hpp46 TORRENT_EXTRA_EXPORT std::mt19937& random_engine();
51 std::shuffle(range.data(), range.data() + range.size(), random_engine());
/dports/net-p2p/py-libtorrent-rasterbar/libtorrent-1.2.13/include/libtorrent/
H A Drandom.hpp46 TORRENT_EXTRA_EXPORT std::mt19937& random_engine();
51 std::shuffle(range.data(), range.data() + range.size(), random_engine()); in random_shuffle()
/dports/net-p2p/libtorrent-rasterbar/libtorrent-rasterbar-1.2.14/src/
H A Drandom.cpp77 std::mt19937& random_engine() in random_engine() function
169 auto& rng = aux::random_engine(); in random()
176 auto const ret = std::uniform_int_distribution<std::uint32_t>(0, max)(aux::random_engine()); in random()
/dports/science/pagmo2/pagmo2-2.18.0/doc/sphinx/docs/cpp/utils/
H A Dgenetic_operators.rst12 …e::size_type nix, const double p_cr, const double eta_c, detail::random_engine_type &random_engine)
20 :param random_engine: the pagmo random engine
41 …le::size_type nix, const double p_m, const double eta_m, detail::random_engine_type &random_engine)
48 :param random_engine: the pagmo random engine
/dports/devel/hyperscan/boost_1_75_0/boost/compute/algorithm/
H A Drandom_shuffle.hpp58 std::default_random_engine random_engine(nondeterministic_randomness()); in random_shuffle() local
59 std::shuffle(random_indices.begin(), random_indices.end(), random_engine); in random_shuffle()
/dports/devel/boost-python-libs/boost_1_72_0/boost/compute/algorithm/
H A Drandom_shuffle.hpp58 std::default_random_engine random_engine(nondeterministic_randomness()); in random_shuffle() local
59 std::shuffle(random_indices.begin(), random_indices.end(), random_engine); in random_shuffle()
/dports/science/py-scipy/scipy-1.7.1/scipy/_lib/boost/boost/compute/algorithm/
H A Drandom_shuffle.hpp58 std::default_random_engine random_engine(nondeterministic_randomness()); in random_shuffle() local
59 std::shuffle(random_indices.begin(), random_indices.end(), random_engine); in random_shuffle()
/dports/devel/R-cran-BH/BH/inst/include/boost/compute/algorithm/
H A Drandom_shuffle.hpp58 std::default_random_engine random_engine(nondeterministic_randomness()); in random_shuffle() local
59 std::shuffle(random_indices.begin(), random_indices.end(), random_engine); in random_shuffle()
/dports/math/stanmath/math-4.2.0/lib/boost_1.75.0/boost/compute/algorithm/
H A Drandom_shuffle.hpp58 std::default_random_engine random_engine(nondeterministic_randomness()); in random_shuffle() local
59 std::shuffle(random_indices.begin(), random_indices.end(), random_engine); in random_shuffle()
/dports/devel/boost-libs/boost_1_72_0/boost/compute/algorithm/
H A Drandom_shuffle.hpp58 std::default_random_engine random_engine(nondeterministic_randomness()); in random_shuffle() local
59 std::shuffle(random_indices.begin(), random_indices.end(), random_engine); in random_shuffle()
/dports/math/py-pystan/pystan-2.19.0.0/pystan/stan/lib/stan_math/lib/boost_1.69.0/boost/compute/algorithm/
H A Drandom_shuffle.hpp58 std::default_random_engine random_engine(nondeterministic_randomness()); in random_shuffle() local
59 std::shuffle(random_indices.begin(), random_indices.end(), random_engine); in random_shuffle()
/dports/devel/boost-docs/boost_1_72_0/boost/compute/algorithm/
H A Drandom_shuffle.hpp58 std::default_random_engine random_engine(nondeterministic_randomness()); in random_shuffle() local
59 std::shuffle(random_indices.begin(), random_indices.end(), random_engine); in random_shuffle()
/dports/net-p2p/py-libtorrent-rasterbar/libtorrent-1.2.13/src/
H A Drandom.cpp77 std::mt19937& random_engine() in random_engine() function
163 return std::uniform_int_distribution<std::uint32_t>(0, max)(aux::random_engine()); in random()
/dports/devel/boost-docs/boost_1_72_0/libs/compute/example/
H A Drandom_walk.cpp49 compute::default_random_engine random_engine(queue); in main() local
53 random_values.begin(), random_values.end(), random_engine, queue in main()

123