MCKL
Monte Carlo Kernel Library
Static Public Attributes | List of all members
mckl::RNGTraits< RNGType > Class Template Reference

Traits of RNG engines. More...

#include <mckl/random/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 mckl::RNGTraits< RNGType >

Traits of RNG engines.

Definition at line 940 of file random/internal/common.hpp.

Member Data Documentation

◆ bits

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

Definition at line 955 of file random/internal/common.hpp.

◆ is_full_range

template<typename RNGType>
constexpr bool mckl::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 952 of file random/internal/common.hpp.