2
0
mirror of https://github.com/boostorg/random.git synced 2026-02-01 08:42:17 +00:00
Commit Graph

563 Commits

Author SHA1 Message Date
Steven Watanabe
85ffca64e6 Fix typo in seed_seq which caused the wrong result when the output sequence is shorter than the input sequence. 2017-10-09 09:54:10 -06:00
Rene Rivera
ab411acba3 Add, and update, documentation build targets. 2016-10-07 23:07:36 -05:00
Steven Watanabe
c7d1b4f351 Use the ziggurat algorithm for the exponential distribution and make some improvements to the normal distribution. Patch by Jason Rhinelander. Fixes #23. 2016-07-06 11:32:38 -06:00
Steven Watanabe
18099e4a11 Suppress conversion warning. 2016-02-19 10:45:05 -07:00
Steven Watanabe
fdd3073448 Suppress warning. 2016-02-18 12:57:06 -07:00
Steven Watanabe
29e8bd59a2 Add a missing break for one dimensional case of uniform_on_sphere. Fixes #11454. 2016-02-13 13:55:27 -07:00
Steven Watanabe
2a04b0ba63 Retry reading if we got less than 4 bytes. Fixes #10980. 2016-02-13 10:39:04 -07:00
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
8699d435f8 Add traits.hpp to doc build. 2015-03-14 18:06:34 +00: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
Steven Watanabe
6af9a818a4 Merge branch 'john-peterson/rt' into develop 2015-03-14 11:24:36 -06:00
John Sebastian Peterson
1e901ec3bf Port to Windows Runtime 2015-03-14 11:22:40 -06:00
Steven Watanabe
f5859d5d38 Add documentation of generate_canonical. 2015-03-05 15:34:22 -07: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
006eb9f7c0 Update Jamfile.v2
Fix image location for PDF doc build
2015-02-25 17:40:34 -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
Peter Dimov
f8c3994e98 Merge pull request #8 from danieljames/metadata
Create metadata file.
2015-01-25 20:31:01 +02:00
Daniel James
a1205f041a Add metadata file. 2014-08-18 15:09:49 +01: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
dc7f3ec6f7 Add test/rng.saved to .gitignore. 2014-04-09 15:45:22 -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
e3f36471e8 Update the concepts to reflect the new members (such as discard), which were added to conform to C++11. Fixes #6703. 2014-03-14 08:15:59 -07:00
Steven Watanabe
435cbfcb93 Read error at the beginning of error(). Fixes #8245. 2014-03-14 07:32:35 -07:00
Steven Watanabe
ed9f359d4b Add beta_distribution and laplace_distribution to documentation. 2014-03-13 17:09:48 -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
Steven Watanabe
51ba4a5125 Fix typo and add the error code to the message. Fixes #8431. 2014-03-11 11:22:57 -07:00