vSMC
vSMC: Scalable Monte Carlo
vsmc::traits::PhiloxRoundConstantTrait< ResultType, K, I > Struct Template Reference

Traits of PhiloxEngine constants for rounding. More...

#include <vsmc/rng/philox.hpp>

Detailed Description

template<typename ResultType, std::size_t K, std::size_t I>
struct vsmc::traits::PhiloxRoundConstantTrait< ResultType, K, I >

Traits of PhiloxEngine constants for rounding.

The first template argument is either uint32_t or uint64_t. The second is the size of the RNG, either 2 or 4. The third is either 0 or 1. Specializing the class templates PhiloxRoundConstantTrait<uint64_t, 4, 0> etc., are equivalent to define macros PHILOX_M4x64_0 etc., in the original implementation.

Definition at line 130 of file philox.hpp.