2
0
mirror of https://github.com/boostorg/random.git synced 2026-01-24 18:12:48 +00:00
Commit Graph

341 Commits

Author SHA1 Message Date
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
Marshall Clow
caf462a816 Switch from deprecated macros to new shiny ones; no functionality change
[SVN r79389]
2012-07-09 19:50:17 +00:00
Steven Watanabe
1cb475183e Add missing inline. Fixes #6854.
[SVN r78513]
2012-05-19 13:49:00 +00:00
Steven Watanabe
6fd0c53bac Add missing #includes. Fixes #6855.
[SVN r78512]
2012-05-19 13:39:30 +00:00
Steven Watanabe
030fe2f938 Remove unnecessary #include. Fixes #6344.
[SVN r78511]
2012-05-19 13:14:28 +00:00
Marshall Clow
1bcaa72324 Updated Boost.Random to use BOOST_NO_0X_HDR_INITIALIZER_LIST instead of (soon to be deprecated) BOOST_NO_INITIALIZER_LISTS
[SVN r77152]
2012-03-02 16:16:45 +00:00
Daniel James
16f5afdb15 Use a proper constexpr for integer_log2.
[SVN r76032]
2011-12-18 11:16:47 +00:00
Steven Watanabe
18b844a2ff Fix off-by-one error. Fixes #6189.
[SVN r75764]
2011-12-01 18:33:13 +00:00
Steven Watanabe
ceddb09af4 Update seed_seq to match the final draft.
[SVN r74482]
2011-09-20 22:59:42 +00:00
Steven Watanabe
db825889d8 Use the right variable. Fixes #5767.
[SVN r74169]
2011-08-30 21:14:01 +00:00
Steven Watanabe
56e40890ca geometric_distribution::min should be 0. Fixes #5704.
[SVN r74168]
2011-08-30 19:31:43 +00:00
Daniel James
04ade5c792 Random: fix constexpr in integer_log2_impl.
[SVN r72991]
2011-07-09 17:13:59 +00:00
Steven Watanabe
7b6a46822b Replace the precision() member for floating point generators with a traits class. This function was intended to be an implementation detail, but user defined generators had to implement it.
[SVN r72826]
2011-06-30 22:27:53 +00:00
Steven Watanabe
a6edff511a Remove use of discard to avoid breaking Boost.TR1.
[SVN r72825]
2011-06-30 21:52:51 +00:00
Daniel James
22cef6849c Random: disable incorrect use of constexpr for now.
[SVN r72799]
2011-06-29 17:49:27 +00:00
Steven Watanabe
94645686dc Oops. This copy/paste error makes sun 5.10 unhappy.
[SVN r70785]
2011-03-31 14:53:33 +00:00
Steven Watanabe
b3199f21ed Attempt to fix sun 5.10 overload resolution problem.
[SVN r70784]
2011-03-31 14:50:26 +00:00
Steven Watanabe
8978939937 Somehow sun-5.10 gets the type of bits wrong.
[SVN r70782]
2011-03-31 14:41:36 +00:00
Steven Watanabe
17727c6cfb pgi doesn't seem to like writing a const char* to a std::wostream? Reading back a space with std::ws is mysteriously failing, but appears to work when a character is written instead of a string literal.
[SVN r70762]
2011-03-30 21:00:41 +00:00
Steven Watanabe
faf1e5ea24 Use fmod before casting to uint32_t. xlc and sun were saturating to 0xFFFFFFFF instead of taking the low order bits.
[SVN r70761]
2011-03-30 20:41:50 +00:00
Steven Watanabe
5538ef2de8 Fix for gcc 3.4.6
[SVN r70700]
2011-03-29 16:03:19 +00:00
Hartmut Kaiser
ba92085d94 Preventing macro substitution
[SVN r70319]
2011-03-21 17:15:10 +00:00
Steven Watanabe
92818ae651 MSVC 7.1 and 8.0 seem to have trouble handling this friend declaration. Try to make it simpler. Refs #5321.
[SVN r70071]
2011-03-17 17:14:38 +00:00
Steven Watanabe
c8b83bcc93 Make sure that integer_log2 works on more than just msvc and gcc.
[SVN r70064]
2011-03-17 16:28:25 +00:00
Steven Watanabe
6603ca0b98 Add missing inline
[SVN r70061]
2011-03-17 15:45:12 +00:00
Steven Watanabe
ff74124051 Replace a couple slow iterative algorithms with multi-precision arithmetic.
[SVN r70047]
2011-03-17 03:45:39 +00:00
Steven Watanabe
cb6b4f1ffb Warning patrol
[SVN r70017]
2011-03-16 03:24:42 +00:00
Steven Watanabe
45255face5 Intel and PGI don't seem to like the friend declarations as written.
[SVN r70007]
2011-03-15 22:51:43 +00:00