<T>LAPACK 0.1.2
C++ Template Linear Algebra PACKage
|
Permuted Congruential Generator. More...
#include <MatrixMarket.hpp>
Public Member Functions | |
uint32_t | operator() () noexcept |
Generates a pseudo-random number using PCG's output function (XSH-RR). | |
PCG32 (uint64_t s=1302) noexcept | |
Constructor. | |
void | seed (uint64_t s) noexcept |
Sets the current state of PCG32. Same as PCG32(s). | |
Static Public Member Functions | |
static constexpr uint32_t | max () noexcept |
static constexpr uint32_t | min () noexcept |
Permuted Congruential Generator.
Defined in https://www.pcg-random.org/pdf/hmc-cs-2014-0905.pdf as PCG-XSL-RR. Constants taken from https://github.com/imneme/pcg-cpp.
|
inlinenoexcept |
Constructor.
s | Default is 1302 for no good reason. |