Commit Graph

410 Commits

Author SHA1 Message Date
Steven Watanabe 7a2b5e4968 Fix compilation 2021-02-17 05:13:30 -07:00
Steven Watanabe 29423ceff9 Merge remote-tracking branch 'origin/pr/no-boost-math' into develop 2021-02-17 04:42:26 -07:00
Steven Watanabe ce603fe0b3 Merge remote-tracking branch 'origin/pr/no-boost-mp' into develop 2021-02-17 04:41:20 -07:00
Matt Borland 4abf9ece63 Fixes for MSVC macro substitutions 2021-01-28 20:02:27 +03:00
Peter Dimov 2e8ae88394 Remove dependence on multiprecision::lsb, msb 2021-01-01 18:14:29 +02:00
Peter Dimov b816e3b8c4 Remove dependency on Boost.Math 2020-12-27 07:46:39 +02:00
Peter Dimov 1e778bfc22 Add missing <cstddef> includes 2020-12-24 16:21:54 +02:00
Steven Watanabe b8d5df3116 Merge remote-tracking branch 'Kojoley/cease-dependence-on-mpl' into develop 2020-07-07 17:42:52 -06:00
Steven Watanabe c92eced8f1 Merge remote-tracking branch 'eldiener/develop' into develop 2020-07-07 17:21:26 -06:00
Steven Watanabe f5c6c6bacf cstdint is C++11 2020-07-07 17:18:40 -06:00
Steven Watanabe 1182a4071e Merge remote-tracking branch 'kotika/develop' into develop 2020-07-07 17:05:13 -06:00
Kostas Savvidis 7c0cad1cd4 Use boost::array instead of std::srray - no other changes req 2020-05-14 11:50:02 +03:00
Edward Diener a9e6cb9493 Change __BORLANDC__ to BOOST_BORLANDC, which is defined in Boost config for the Embarcadero non-clang-based compilers. 2020-03-31 16:17:57 -04:00
Romain Geissler a668525393 Fix -Wtautological-overlap-compare clang warning in linear_congruential.hpp
Clang 10 shows this warning/error (with -Werror):

/remote/intdeliv/components/osp/Boost/19-0-0-18/include/boost/random/linear_congruential.hpp:140:20: error: overlapping comparisons always evaluate to false [-Werror,-Wtautological-overlap-compare]
        if(_x <= 0 && _x != 0) {
           ~~~~~~~~^~~~~~~~~~
/remote/intdeliv/components/osp/Boost/19-0-0-18/include/boost/random/linear_congruential.hpp:393:11: note: in instantiation of member function 'boost::random::linear_congruential_engine<unsigned long, 25214903917, 11, 281474976710656>::seed' requested here
    { lcf.seed(cnv(x0)); }
2020-02-26 14:31:16 +00:00
Kostas Savvidis 3df2cd9b09 just a reindent and beautification 2019-11-27 20:08:10 +02:00
Kostas Savvidis 4fa691bd27 Update mixmax.hpp 2019-11-27 10:24:51 +02:00
Nikita Kniazev 40bc6ef668 Cease dependence on MPL 2019-11-22 22:13:12 +03:00
kotika 1ff8087a0c Passed through a C++ Beautifier on October 29 2019-10-29 14:04:02 +02:00
Kostas Savvidis a795954106 Update random.hpp 2019-10-29 13:01:20 +02:00
Kostas Savvidis 20c59551ca added mixmax_skip_N17.ipp 2019-10-29 11:02:31 +02:00
Kostas Savvidis 9916ec3ca8 Add files via upload
added mixmax.hpp
2019-10-29 11:01:50 +02:00
Steven Watanabe ed7ab807e6 Make engine min/max constexpr. 2019-03-28 14:22:45 -06:00
Steven Watanabe a4f1784f68 Fix excessive looping. Fixes #53. 2019-03-28 10:06:39 -06:00
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