2
0
mirror of https://github.com/boostorg/random.git synced 2026-01-19 04:22:17 +00:00

158 Commits

Author SHA1 Message Date
Matt Borland
b75f487382 Add reproducer test set 2025-12-02 12:39:27 +01:00
Matt Borland
c81bc326c9 Update reference values for seedseq constructors 2025-11-12 09:41:29 +01:00
Matt Borland
689186465c Add reproducer test set 2025-11-12 08:57:45 +01:00
Matt Borland
1bed1827a9 Add reproducer test case 2025-06-30 11:17:39 -04:00
Matt Borland
ee39122450 Reduce build requirements, and ensure they are enforced in testing 2025-06-16 13:08:13 -04:00
Young Geun Kim
4f6fdb9dc7 Feature: Generalized inverse Gaussian random generator (#126)
* use Devroye instead of Hormann for GIG

* add gig header file

* add gig test

* move using declarations before member declaration

* move using into each function

* fix tab size and add init()

* add test to jamfile

* remove duplicate iostream operators

* fix formatting again

* add to docs

* remove static because they use non-static member

* add const in member functions

* remove duplicate test

* fix typo

* need dist3 in three parameter test

* specify test1 params

* missing using std::cosh

* sinh and cosh under c++11

* set arg3 different in test

* set test arg value different from the default

* add test3 to cover every line in gig

* remove uninitialized variables compile warning in gig operator

* did not add test3 mistakenly
2025-02-06 08:11:18 -05:00
Matt Borland
6a579ae501 Add missing test macros 2025-02-03 09:40:56 -05:00
Matt Borland
f617f0eaf1 Add test to jamfile 2025-02-03 09:40:26 -05:00
Young Geun Kim
db5b58bd72 remove using inside init 2025-02-02 16:52:22 +09:00
Young Geun Kim
473d4203c0 add precomputed variable 2025-02-02 16:43:54 +09:00
Young Geun Kim
1632e78cb3 add test for inverse gaussain 2025-02-01 12:54:42 +09:00
Matt Borland
963d75cf55 Add xoshiro128f 2025-01-30 16:20:08 -05:00
Matt Borland
3ee4c9b8f5 Add xoshiro128mm 2025-01-30 16:20:08 -05:00
Matt Borland
2f809444dd Add xoshiro128pp 2025-01-30 16:20:08 -05:00
Matt Borland
c6bc559e5f Add xoshiro512d 2025-01-30 14:29:45 -05:00
Matt Borland
627db23d17 Add xoshiro512mm 2025-01-30 14:29:45 -05:00
Matt Borland
a65d1f410a Add xoshiro512pp 2025-01-30 14:29:44 -05:00
Matt Borland
fa075862ad Rename generators 2025-01-30 12:49:33 -05:00
Matt Borland
847f403afb Update xoshiro256_plus to return doubles instead of uint64_ts 2025-01-30 12:42:02 -05:00
Matt Borland
bfb053bb1b Allow 64 bit seeds to be passed instead of a 32 bit limit 2025-01-30 12:41:15 -05:00
Matt Borland
0d44298d45 Only test double conversion on MSVC with C++ >= 20 2025-01-30 11:52:48 -05:00
Matt Borland
bc011f5ef3 Add comparison to reference impl 2025-01-29 16:46:01 -05:00
Matt Borland
3559ca6135 Add xoshiro256_starstar basic testing 2025-01-29 16:44:08 -05:00
Matt Borland
1e8f02957a Add comparison testing 2025-01-29 16:14:07 -05:00
Matt Borland
1c17c07e83 Add basic test set 2025-01-29 15:51:16 -05:00
Matt Borland
13edcb1561 Add test against original C implementation 2025-01-29 15:35:27 -05:00
Matt Borland
0ca2520a66 Add xoshiro256_plusplus tests 2025-01-29 14:42:20 -05:00
René Ferdinand Rivera Morell
dcaee178a6 Add support for modular build structure. (#107)
* Make the library modular usable.

* Switch to library requirements instead of source. As source puts extra source in install targets.

* Add missing NO_LIB usage requirements.

* Update library dependencies.

* Add requires-b2 check to top-level build file.

* Bump B2 require to 5.2

* Update copyright dates.

* Move inter-lib dependencies to a project variable and into the build targets.

* Switch to /boost/test//included target for header only mode of Boost.Test.

* Adjust doc build to avoid boost-root references.

* Update build deps.

* Change Boost Test build refs to work with both old and modular test lib targets.

* Change math dep real target math/tr1.

* Allow deprecated Node version

* Drop MSVC 14.0 support

---------

Co-authored-by: Matt Borland <matt@mattborland.com>
2024-08-19 17:13:10 -04:00
Matt Borland
e35ff648b3 Update test jamfile to use built random library 2024-04-08 09:02:24 +02:00
Matt Borland
1ec9a7d947 Add Boost::numeric_conversion to test CML 2024-02-14 08:11:54 +01:00
Matt Borland
d147829468 Add Splitmix64 (#89) 2023-12-15 08:45:47 +01:00
Matt Borland
2a7c2b4fb3 Add test cml 2023-12-14 10:16:28 +01:00
jzmaddock
4239d93dad Update multiprecision_float_test.cpp to not overflow type double.
Previously the max value for uint1024_t could just squeeze into a double because truncation occurred during the conversion, now that cpp_int performs correctly rounded conversions, overflow occurs, and the computation fails.  Changed the problem distribution to use a multiprecision weight type, rather than double.
2022-06-01 19:35:36 +01:00
jzmaddock
7561690135 Update multiprecision_int_test.cpp to not accidentality overflow type double.
Multiprecision now performs correct rounding when converting to double - previously the max value for uint1024_t would just fit in a double if it was truncated.  But now that it's correctly rounded it overflows and breaks the calculation.
2022-06-01 19:32:55 +01:00
jzmaddock
c3ada7a1b2 Add missing #includes. 2021-03-16 10:47:16 +00:00
kotika
1ff8087a0c Passed through a C++ Beautifier on October 29 2019-10-29 14:04:02 +02:00
Kostas Savvidis
d565c034aa Update Jamfile.v2 2019-10-29 12:06:07 +02:00
Kostas Savvidis
d1bca7b57f Add files via upload 2019-10-29 12:05:09 +02:00
Steven Watanabe
ed7ab807e6 Make engine min/max constexpr. 2019-03-28 14:22:45 -06: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
Steven Watanabe
f3a83d0497 Remove duplicate test which is now detected by Boost.Test. 2018-01-23 13:12:48 -07:00
Steven Watanabe
c2fba24fbf Adjust the condition on brace initializers test to help some versions of gcc. 2018-01-10 14:54:32 -07:00
Steven Watanabe
122386c345 Merge remote-tracking branch 'jeking3/fix-warn' into develop 2018-01-02 17:38:13 -07:00
Steven Watanabe
244b59abb6 Remove bind1st. 2017-12-07 15:17:23 -07: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
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
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