vSMC  v3.0.0
Scalable Monte Carlo
Static Public Attributes | List of all members
vsmc::RNGTraits< RNGType > Class Template Reference

Traits of RNG engines. More...

#include <vsmc/rng/internal/common.hpp>

Static Public Attributes

static constexpr int bits = internal::Log2<result_type, R_>::value
 
static constexpr bool is_full_range
 If the random integers are uniform on the set \(\{0,\dots,2^W - 1\}\) for some \(W > 0\). More...
 

Detailed Description

template<typename RNGType>
class vsmc::RNGTraits< RNGType >

Traits of RNG engines.

Definition at line 1003 of file rng/internal/common.hpp.

Member Data Documentation

template<typename RNGType >
constexpr int vsmc::RNGTraits< RNGType >::bits = internal::Log2<result_type, R_>::value
static

Definition at line 1018 of file rng/internal/common.hpp.

template<typename RNGType >
constexpr bool vsmc::RNGTraits< RNGType >::is_full_range
static
Initial value:
=
RNGType::min() == 0 && (R_ & (R_ - 1)) == 0

If the random integers are uniform on the set \(\{0,\dots,2^W - 1\}\) for some \(W > 0\).

Definition at line 1015 of file rng/internal/common.hpp.