LDA++
Public Types | Public Member Functions | Static Public Member Functions | List of all members
ldaplusplus::math_utils::ThreadSafePRNG< PRNG > Class Template Reference

#include <utils.hpp>

Public Types

typedef PRNG::result_type result_type
 

Public Member Functions

 ThreadSafePRNG (int random_state)
 
result_type operator() ()
 

Static Public Member Functions

static result_type min ()
 
static result_type max ()
 

Detailed Description

template<typename PRNG>
class ldaplusplus::math_utils::ThreadSafePRNG< PRNG >

Wrap a PRNG with this class in order to be able to pass it around even to other threads and protect its internal state from being corrupted.

see UniformRandomBitGenerator C++ concept http://en.cppreference.com/w/cpp/concept/UniformRandomBitGenerator


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