2
0
mirror of https://github.com/boostorg/random.git synced 2026-01-26 06:42:28 +00:00
Commit Graph

368 Commits

Author SHA1 Message Date
Steven Watanabe
0cf63f2adb Use BOOST_SYMBOL_IMPORT|EXPORT. 2015-04-01 13:31:44 -06:00
Steven Watanabe
2d95a5a605 Merge remote-tracking branch 'MarcelRaad/patch-1' into develop 2015-04-01 12:37:20 -06:00
Steven Watanabe
89174b6ca3 Add hyperexponential_distribution. Contributed by Marco Guazzone. 2015-04-01 10:08:06 -06:00
Steven Watanabe
a4d8dfccf7 Merge remote-tracking branch 'jzmaddock/mt2' into develop 2015-03-14 12:30:54 -06:00
jzmaddock
839acad329 Get multiprecision floating point support working, and add test case. 2015-03-14 18:06:14 +00:00
jzmaddock
d4514f1e07 Fix integer distributions for multiprecision support, and add support for one multiprecision generator (independent_bits_engine).
Added test case for multiprecision integers.
2015-03-14 18:05:23 +00:00
jzmaddock
ef63274cec Add missing #includes. 2015-03-14 17:58:27 +00:00
Steven Watanabe
18d302d63b Merge remote-tracking branch 'sergiud/develop' into develop 2015-03-14 11:36:39 -06:00
Alex Henrie
c627f3c759 Correct spelling of "suppress" 2015-02-25 18:07:47 -07:00
Steven Watanabe
394439ae88 Add using declaration for sqrt. Fixes #10950. 2015-02-25 18:04:47 -07:00
Steven Watanabe
fd3d33df4c Avoid using uintptr_t. 2015-02-25 17:33:10 -07:00
jzmaddock
2f432ffed2 Add includes for mpl types - replying on implicit includes via type traits won't work going forward. 2015-02-25 16:46:07 -07:00
Sergiu Dotenco
3dc8c147e4 fixed type conversion warnings emitted by msvc 12.0 for 64-bit builds 2014-08-05 17:34:25 +02:00
Marcel Raad
cb7f87e0a7 Fix variable shadowing warning
Microsoft Visual C++ 14 has a new warning:
"warning C4456: declaration of 'u' hides previous local declaration".
2014-07-03 19:14:57 +02:00
Steven Watanabe
a8aed49f29 Use the right upper bound for the exponent. 2014-04-12 11:26:16 -07:00
Steven Watanabe
d8a04c2cc1 Update reference. 2014-04-09 08:25:58 -07:00
Steven Watanabe
25cef713f9 Add non-central chi-squared distribution contributed by Thijs van den Berg. 2014-04-08 17:47:01 -07:00
Steven Watanabe
1d40d08813 Fix unused variable warning. 2014-04-05 12:29:20 -07:00
Steven Watanabe
39d05f0161 Optimized algorithm for mersenne_twister_engine::discard. Fixes #6706. 2014-04-05 11:22:01 -07:00
Steven Watanabe
2edb377b13 Add laplace_distribution. Refs #6804. 2014-03-13 17:06:52 -07:00
Steven Watanabe
b7fae47331 Add beta_distribution. Refs #6804. 2014-03-13 16:13:35 -07:00
Steven Watanabe
dac48f62a8 Use system_error in random_device. Fixes #8245. 2014-03-13 15:20:35 -07:00
Steven Watanabe
c0a694e8d9 Avoid overflow. Fixes #8351. 2014-03-13 14:50:17 -07:00
Steven Watanabe
dbb7b3cfaa Handle integer weights in discrete_distribution. FIxes #6022. 2014-03-13 13:17:28 -07:00
Steven Watanabe
16b73cb3a7 Optimize uniform_on_sphere for dims <= 3. Fixes #1059. 2014-03-12 17:31:23 -07:00
Steven Watanabe
9cd247da37 Prevent infinite loop in binomial_distribution. Fixes #9652. 2014-03-11 13:02:37 -07:00
Steven Watanabe
00c250421a Disable GCC warning. Fixes #9596. 2014-03-11 12:20:19 -07:00
Steven Watanabe
8a461db795 Fix equation. Fixes #9513. 2014-03-11 12:02:25 -07:00
Steven Watanabe
c010a53ae8 Add an explicit cast to avoid warnings. Fixes #8779. 2014-03-11 11:57:59 -07:00
Steven Watanabe
ce5fe81498 Revert "random: add explicit casts in normal_distribution.hpp to avoid truncation warnings with MSVC"
This reverts commit 87e4a09ce0.
2014-03-11 11:52:58 -07:00
Steven Watanabe
522c172d78 Remove unused typedefs. Fixes #8854. 2014-03-11 11:45:55 -07:00
Mathias Gaunard
87e4a09ce0 random: add explicit casts in normal_distribution.hpp to avoid truncation warnings with MSVC
[SVN r86325]
2013-10-15 16:40:51 +00:00
Mathias Gaunard
e8b67e2f27 random: avoid generating warnings with -Wshadow, fix #9115
[SVN r86321]
2013-10-15 14:08:57 +00:00
Stephen Kelly
913baf11ac Remove BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
Process #ifdef...#else...#endif blocks.

[SVN r86246]
2013-10-11 23:19:17 +00:00
Stephen Kelly
e14ad4f535 Remove BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
Process #ifndef...#endif conditions.

[SVN r86244]
2013-10-11 23:15:00 +00:00
Stephen Kelly
966be3d1a1 Random: Remove obsolete MSVC version check.
[SVN r86030]
2013-09-30 00:19:36 +00:00
Steven Watanabe
4bc0a07068 Add explicit casts to avoid warnings on vc8. Fixes #5762.
[SVN r82940]
2013-02-16 22:15:31 +00:00
Steven Watanabe
3c25564816 Fix -Wshadow warning. Fixes #7774.
[SVN r82939]
2013-02-16 21:48:20 +00:00
Steven Watanabe
4fafac0efe Use underscores in attributes. Fixes #6408.
[SVN r82938]
2013-02-16 21:30:43 +00:00
Steven Watanabe
6e7dec409a Fix assertion for uniform_real. Fixes #6053. Fixes #6059.
[SVN r82937]
2013-02-16 21:14:23 +00:00
Steven Watanabe
5b3f1c7fe6 Avoid generating NaNs. Fixes #7779.
[SVN r82936]
2013-02-16 20:30:51 +00:00
Marshall Clow
ae12937978 Fix behavior with zero seed re: '26.5.3.3 [rand.eng.sub]/7'; thanks to stl@microsoft for the report; Refs #7951
[SVN r82664]
2013-01-30 06:42:36 +00:00
Steven Watanabe
eb5bfa1fd0 Fix typo. Refs #7645.
[SVN r81501]
2012-11-23 23:31:44 +00:00
Marshall Clow
174c98d347 Remove usage of deprecated macros
[SVN r81442]
2012-11-20 19:44:24 +00:00
Marshall Clow
05c2826a4a Replaced throw with boost::throw_exception; Refs #5399
[SVN r81379]
2012-11-17 05:17:06 +00:00
Steven Watanabe
f0ec97ba36 Implement the ziggurat algorithm for the normal distribution.
[SVN r81018]
2012-10-19 18:32:53 +00:00
Steven Watanabe
973d453a02 Make sure that equivalent states of mersenne_twister have identical bits. Fixes #6801.
[SVN r81001]
2012-10-16 21:33:16 +00:00
Marshall Clow
099125d5f5 Fixed typo; Refs #7509
[SVN r80995]
2012-10-16 03:05:15 +00:00
Steven Watanabe
5cb53bb98e Remove static. Fixes #7096
[SVN r80992]
2012-10-15 19:10:33 +00:00
Steven Watanabe
d3899e5f44 Make result_type public and constructors explicit on shuffle_output. Fixes #7121.
[SVN r80990]
2012-10-15 03:18:25 +00:00