vSMC
vSMC: Scalable Monte Carlo
|
Counter based RNG engine. More...
#include <vsmc/rng/counter.hpp>
Public Types | |
using | ctr_type = typename Generator::ctr_type |
using | key_type = typename Generator::key_type |
using | result_type = typename Generator::result_type |
Public Member Functions | |
CounterEngine (result_type s=0) | |
template<typename SeedSeq > | |
CounterEngine (SeedSeq &seq, typename std::enable_if< internal::is_seed_seq< SeedSeq, result_type, key_type, CounterEngine< Generator >>::value >::type *=nullptr) | |
CounterEngine (const key_type &k) | |
const ctr_type & | ctr () const |
void | ctr (const ctr_type &c) |
void | discard (result_type nskip) |
const key_type & | key () const |
void | key (const key_type &k) |
result_type | operator() () |
void | operator() (std::size_t n, result_type *r) |
void | seed (result_type s) |
template<typename SeedSeq > | |
void | seed (SeedSeq &seq, typename std::enable_if< internal::is_seed_seq< SeedSeq, result_type, key_type >::value >::type *=nullptr) |
void | seed (const key_type &k) |
Static Public Member Functions | |
static constexpr result_type | max () |
static constexpr result_type | min () |
Friends | |
bool | operator!= (const CounterEngine< Generator > &eng1, const CounterEngine< Generator > &eng2) |
template<typename CharT , typename Traits > | |
std::basic_ostream< CharT, Traits > & | operator<< (std::basic_ostream< CharT, Traits > &os, const CounterEngine< Generator > &eng) |
bool | operator== (const CounterEngine< Generator > &eng1, const CounterEngine< Generator > &eng2) |
template<typename CharT , typename Traits > | |
std::basic_istream< CharT, Traits > & | operator>> (std::basic_istream< CharT, Traits > &is, CounterEngine< Generator > &eng) |
Counter based RNG engine.
Definition at line 289 of file counter.hpp.
using vsmc::CounterEngine< Generator >::ctr_type = typename Generator::ctr_type |
Definition at line 293 of file counter.hpp.
using vsmc::CounterEngine< Generator >::key_type = typename Generator::key_type |
Definition at line 294 of file counter.hpp.
using vsmc::CounterEngine< Generator >::result_type = typename Generator::result_type |
Definition at line 292 of file counter.hpp.
|
inlineexplicit |
Definition at line 296 of file counter.hpp.
|
inlineexplicit |
Definition at line 299 of file counter.hpp.
|
inlineexplicit |
Definition at line 307 of file counter.hpp.
|
inline |
Definition at line 331 of file counter.hpp.
|
inline |
Definition at line 335 of file counter.hpp.
|
inline |
Definition at line 392 of file counter.hpp.
|
inline |
Definition at line 333 of file counter.hpp.
|
inline |
Definition at line 341 of file counter.hpp.
|
inlinestatic |
Definition at line 419 of file counter.hpp.
|
inlinestatic |
Definition at line 414 of file counter.hpp.
|
inline |
Definition at line 347 of file counter.hpp.
|
inline |
Definition at line 357 of file counter.hpp.
|
inline |
Definition at line 309 of file counter.hpp.
|
inline |
Definition at line 317 of file counter.hpp.
|
inline |
Definition at line 325 of file counter.hpp.
|
friend |
Definition at line 438 of file counter.hpp.
|
friend |
Definition at line 445 of file counter.hpp.
|
friend |
Definition at line 424 of file counter.hpp.
|
friend |
Definition at line 461 of file counter.hpp.