Commit Graph

387 Commits

Author SHA1 Message Date
Steven Watanabe
c7b6f42a5a Merge remote-tracking branch 'anton-matosov/develop' into develop 2018-10-25 17:49:47 -06:00
Steven Watanabe
d217e56535 Merge remote-tracking branch 'NAThompson/remove_deprecated_header' into develop 2018-10-25 13:15:33 -06:00
Steven Watanabe
60c43db293 Fix signed integer overflow in niederreiter_base2.
Suppress other (spurious) warnings from msvc.
2018-05-12 19:57:16 -06:00
Anton Matosov
b8a6545710 Pre-allocate memory to increase insertion performance 2018-03-22 16:13:55 -07:00
Justinas V. Daugmaudis
5ebb0554d9 Nitpicky type adjustments 2018-03-14 14:28:20 +02:00
Justinas V. Daugmaudis
c4dfa03901 Strong exception safety for lattice computation 2018-03-13 18:50:52 +02:00
Justinas V. Daugmaudis
b14d592873 Quick fixes
Fix warnings
low_bits_mask_t
use high_bit_mask_t
Moved qrng details to namespace qrng_detail
Removed unnecessary function
Simplify gray code size check & readability
Disallow negative seeds
2018-03-10 12:54:04 +02:00
Justinas V. Daugmaudis
9786f4f481 Aggregated review fixes
Check discard overflows
Check comparison overflows
Exception messages
Add missing docs and fix typedef ugliness
Better template param name
2018-03-04 00:02:58 +02:00
Justinas V. Daugmaudis
3db2d7cb71 Initial QRNG commit 2018-02-18 10:49:14 +02:00
Nick Thompson
1be44d405e [ci skip] Remove deprecated header. 2018-02-11 15:02:43 -06:00
James E. King III
9c82aad413 fix some warnings reported by clang 2017-12-05 11:21:56 -05:00
Steven Watanabe
e4b0b2f5c0 Merge remote-tracking branch 'DanielaE/feature/replace-deprecated-c++98-stuff' into develop 2017-11-06 13:14:00 -07:00
Steven Watanabe
87477f5023 Work around problem on msvc-12/14 in release mode. 2017-11-06 13:12:44 -07:00
Steven Watanabe
2b4779fd5b If we're going to the trouble of fixing up the input, then reading should be considered successful. Also, make hyperexponential tests match the implementation. 2017-11-03 19:21:54 -06:00
Steven Watanabe
b58774fd54 Fix undefined behavior in independent_bits_engine, when filling all the bits of the result_type from a single call to the base engine. 2017-10-09 10:29:38 -06:00
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
Daniela Engert
e75d0b99b9 Replace deprecated/removed C++98 std::bind2nd by a custom function object, and ignore tests focussing on std::random_shuffle.
Signed-off-by: Daniela Engert <dani@ngrt.de>
2017-05-13 19:24:05 +02: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
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
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