The Pcg64 class
PCG-XSL-RR with 128 bits of state and 64-bit output, the pcg64 engine of the reference C++ library and of NumPy, seeded as pcg64(seed, stream).
More...
#include <pcg.hpp>
|
| constexpr | Pcg64 (std::uint64_t value=default_seed, std::uint64_t stream=default_stream) noexcept |
| |
template<class SeedSeq >
requires (!std::convertible_to<SeedSeq &, std::uint64_t>) |
| | Pcg64 (SeedSeq &sequence) |
| |
| constexpr void | seed (std::uint64_t value, std::uint64_t stream=default_stream) noexcept |
| | pcg_engines::setseq_xsl_rr_128_64(seed, stream) with 64-bit seed and stream
|
| |
template<class SeedSeq >
requires (!std::convertible_to<SeedSeq &, std::uint64_t>) |
| void | seed (SeedSeq &sequence) |
| |
| constexpr result_type | operator() () noexcept |
| |
| constexpr void | discard (unsigned long long n) noexcept |
| |
The Pcg64 class
PCG-XSL-RR with 128 bits of state and 64-bit output, the pcg64 engine of the reference C++ library and of NumPy, seeded as pcg64(seed, stream).
◆ result_type
◆ Pcg64() [1/2]
|
|
inlineexplicitconstexprnoexcept |
◆ Pcg64() [2/2]
template<class SeedSeq >
requires (!std::convertible_to<SeedSeq &, std::uint64_t>)
| randlib::Pcg64::Pcg64 |
( |
SeedSeq & |
sequence | ) |
|
|
inlineexplicit |
◆ discard()
| constexpr void randlib::Pcg64::discard |
( |
unsigned long long |
n | ) |
|
|
inlineconstexprnoexcept |
◆ max()
|
|
inlinestaticconstexprnoexcept |
◆ min()
|
|
inlinestaticconstexprnoexcept |
◆ operator()()
◆ seed() [1/2]
template<class SeedSeq >
requires (!std::convertible_to<SeedSeq &, std::uint64_t>)
| void randlib::Pcg64::seed |
( |
SeedSeq & |
sequence | ) |
|
|
inline |
◆ seed() [2/2]
| constexpr void randlib::Pcg64::seed |
( |
std::uint64_t |
value, |
|
|
std::uint64_t |
stream = default_stream |
|
) |
| |
|
inlineconstexprnoexcept |
pcg_engines::setseq_xsl_rr_128_64(seed, stream) with 64-bit seed and stream
◆ operator==
| constexpr bool operator== |
( |
const Pcg64 & |
, |
|
|
const Pcg64 & |
|
|
) |
| |
|
friend |
◆ default_seed
| constexpr std::uint64_t randlib::Pcg64::default_seed = 0xCAFEF00DD15EA5E5ULL |
|
staticconstexpr |
◆ default_stream
| constexpr std::uint64_t randlib::Pcg64::default_stream = 0 |
|
staticconstexpr |
The documentation for this class was generated from the following file: