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

822 Commits

Author SHA1 Message Date
Matt Borland
1d686205f8 Merge pull request #151 from boostorg/150
Fix support of unsigned types in binomial_distribution
2025-12-02 14:54:16 +01:00
Matt Borland
88d6840a19 Cast arguments prior to taking abs 2025-12-02 12:39:36 +01:00
Matt Borland
b75f487382 Add reproducer test set 2025-12-02 12:39:27 +01:00
Matt Borland
525a07cb70 Merge pull request #148 from boostorg/seedseq
Fix xoshiro constructors using seed seq incorrectly
2025-11-12 11:25:31 +01:00
Matt Borland
c81bc326c9 Update reference values for seedseq constructors 2025-11-12 09:41:29 +01:00
Matt Borland
66b201c12b Fix seed sequence constructor 2025-11-12 08:58:04 +01:00
Matt Borland
689186465c Add reproducer test set 2025-11-12 08:57:45 +01:00
Matt Borland
49d131b328 Merge pull request #145 from boostorg/assert
Replace branched assertions with single assertion to fix compile error
2025-10-29 19:18:38 +01:00
Matt Borland
35a469e97a Replace branched assertions with single assertion to fix compile error 2025-10-29 14:45:08 +01:00
Matt Borland
815af30289 Merge pull request #142 from boostorg/splitmix 2025-10-24 08:40:06 +02:00
Matt Borland
852cb0e37b Improve performance of splitmix discard 2025-10-24 06:21:17 +02:00
Matt Borland
be37499139 Merge pull request #139 from Flamefire/patch-1 2025-10-01 07:50:29 +02:00
Alexander Grund
2749119e2c Fix required CMake version
`cxx_std_11` requires CMake 3.8
2025-09-30 17:25:37 +02:00
Matt Borland
4f9e990e68 Merge pull request #137 from boostorg/update_ci 2025-07-02 19:50:07 -04:00
Matt Borland
072c4c2dce Remove static from internal dists 2025-07-02 15:02:48 -04:00
Matt Borland
9dfab46a70 Move ubuntu 22.04 into containers and remove windows-2019 2025-07-02 14:51:27 -04:00
Matt Borland
222d6b2d06 Merge pull request #135 from boostorg/133v2
Improve efficiency of `beta_distribution::operator()`
2025-07-02 11:54:39 -04:00
Matt Borland
093554f4a7 Avoid re initializing the gamma distributions for each operator() call 2025-06-30 15:34:31 -04:00
Matt Borland
176a2775e7 Mark gamma_dist operator() as const 2025-06-30 15:22:28 -04:00
Matt Borland
3289126cd7 Merge pull request #134 from boostorg/133
Avoid division by 0 in beta_distribution `operator()`
2025-06-30 13:41:39 -04:00
Matt Borland
c98dc05550 Use do loop to avoid division by 0 2025-06-30 11:39:00 -04:00
Matt Borland
1bed1827a9 Add reproducer test case 2025-06-30 11:17:39 -04:00
Matt Borland
59a5eb88ad Merge pull request #132 from boostorg/remove_reqs 2025-06-16 15:19:45 -04:00
Matt Borland
ee39122450 Reduce build requirements, and ensure they are enforced in testing 2025-06-16 13:08:13 -04:00
Matt Borland
7363de5e94 Merge pull request #115 from zjyhjqs/feat/enable-random-device
feat: add option to disable `random_device` for header-only build
2025-03-17 13:55:39 -04:00
zjyhjqs
2f8e706a28 Add option to disable random_device for header-only build 2025-03-18 00:14:04 +08:00
Matt Borland
80d0bd5519 Merge pull request #129 from boostorg/CI
Replace deprecated OS with containers
2025-02-17 16:43:05 -05:00
Matt Borland
f46f59f2ae Replace deprecated OS with containers 2025-02-17 13:24:26 -05:00
Matt Borland
83d5825a62 Merge pull request #128 from boostorg/size_warn
Fix unused variable warning
2025-02-10 16:09:29 -05:00
Matt Borland
c759809c22 Fix unused variable warning 2025-02-10 14:03:04 -05: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
8378063ac7 Merge pull request #124 from ygeunkim/inverse-gaussian
Feature: Inverse gaussian random generator
2025-02-03 20:17:53 -05:00
Matt Borland
ddcd361aef Merge pull request #127 from boostorg/remove_array
Remove Heavy Dependencies
2025-02-03 13:32:28 -05:00
Matt Borland
efb6d03ed4 Use workaround for std::size() 2025-02-03 11:47:01 -05:00
Matt Borland
e04c12c751 Add workaround for std::size being C++17 2025-02-03 11:42:54 -05:00
Matt Borland
e9dbb6d160 Remove boost.range dependency 2025-02-03 10:56:12 -05:00
Matt Borland
534b10981e Remove dependency of Boost.Array and Boost.cstdint 2025-02-03 10:41:56 -05:00
Matt Borland
1b7af50452 Add to docs 2025-02-03 10:26:53 -05:00
Matt Borland
59bc72ab6c General formatting fixes 2025-02-03 09:52:20 -05:00
Matt Borland
6a579ae501 Add missing test macros 2025-02-03 09:40:56 -05:00
Matt Borland
ea9e1d11b6 Remove duplicate iostream operators 2025-02-03 09:40:44 -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
631f7dfe2b add using random::inverse_gaussian_distribution as other headers 2025-02-01 20:54:41 +09:00
Young Geun Kim
1c8bd5bc66 fix misspecified iG algorithm 2025-02-01 18:36:00 +09:00
Young Geun Kim
1faf29e025 fix typo for explicit in inverse gaussian 2025-02-01 17:39:15 +09:00
Young Geun Kim
2b54d0fc6a add header includsion in random.hpp 2025-02-01 17:28:17 +09:00
Young Geun Kim
1632e78cb3 add test for inverse gaussain 2025-02-01 12:54:42 +09:00
Young Geun Kim
c9749977c7 add inverse gaussian header 2025-02-01 12:47:59 +09:00