<T>LAPACK 0.1.2
C++ Template Linear Algebra PACKage
Loading...
Searching...
No Matches
tlapack::PCG32 Class Reference

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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ PCG32()

tlapack::PCG32::PCG32 ( uint64_t  s = 1302)
inlinenoexcept

Constructor.

Parameters
sDefault is 1302 for no good reason.

The documentation for this class was generated from the following file: