pcg-cpp
pcg-cpp copied to clipboard
PCG — C++ Implementation
The best pseudo-random number generator in the C++ standard library is probably the Mersenne twister, which has well-known disadvantages such as being pretty memory heavy. Do you know if anyone...
We have an application with an adjoint Monte Carlo simulation that requires a reversible PRNG. We implemented a reversal of your PCG family and thought it useful to include in...
Would you be interested in a PR that makes most functions of this library constexpr? I haven't really investigated this yet, but it seems that one could just slab a...
Minimal example: ``` #include int main() { return 0; } ``` Compiling twice gives a cache miss the second time: ``` $ ccache g++ -c -Ipcg-cpp-0.98.1/include pcg-example.cpp $ ccache -s...
When trying to use pgc with a fully updated visual studio 2019 (version 16.7.5) I can use generators as ``` // Make a random number engine pcg64 rng(1234); ``` without...
Would it be possible to create a new release please? The last one, 0.98.1, is very old (6 years) and broken with Visual Studio (2019 at least).
I'm working on an algorithm (procedural racetrack generator) whose outcome, in the general case, is solely based on the RNG outputs. But in some specific scenarios, I need to provide...
I have incorporated the PCG family into an [R package](https://www.daqana.org/dqrng/). On submission to CRAN I have been informed about a compilation error on Solaris: > > In file included from...
MSVC implements empty base class optimization only as an opt-in (see https://devblogs.microsoft.com/cppblog/optimizing-the-layout-of-empty-base-classes-in-vs2015-update-2-3/). Because of this, the tests fail on MSVC as the engines are larger than expected. By using the...
The c++ version available for download at https://www.pcg-random.org/ is old (v0.98), and contains some bugs that have already been fixed in v0.98.1 It would be good to update or remove...