vSMC
vSMC: Scalable Monte Carlo
|
Xorwow RNG engine. More...
#include <vsmc/rng/xorshift.hpp>
Public Types | |
typedef Eng | engine_type |
typedef Eng::result_type | result_type |
Public Member Functions | |
XorwowEngine (result_type s=1) | |
template<typename SeedSeq > | |
XorwowEngine (SeedSeq &seq, typename cxx11::enable_if< internal::is_seed_seq< SeedSeq, result_type, XorwowEngine< Eng, D, DInit > >::value >::type *=nullptr) | |
void | discard (std::size_t nskip) |
result_type | operator() () |
void | seed (result_type s) |
template<typename SeedSeq > | |
void | seed (SeedSeq &seq, typename cxx11::enable_if< internal::is_seed_seq< SeedSeq, result_type, XorwowEngine< Eng, D, DInit > >::value >::type *=nullptr) |
Static Public Member Functions | |
static constexpr result_type | max () |
static constexpr result_type | min () |
Static Public Attributes | |
static constexpr const result_type | _Max |
static constexpr const result_type | _Min = 0 |
Friends | |
bool | operator!= (const XorwowEngine< Eng, D, DInit > &eng1, const XorwowEngine< Eng, D, DInit > &eng2) |
template<typename CharT , typename Traits > | |
std::basic_ostream< CharT, Traits > & | operator<< (std::basic_ostream< CharT, Traits > &os, const XorwowEngine< Eng, D, DInit > &eng) |
bool | operator== (const XorwowEngine< Eng, D, DInit > &eng1, const XorwowEngine< Eng, D, DInit > &eng2) |
template<typename CharT , typename Traits > | |
std::basic_istream< CharT, Traits > & | operator>> (std::basic_istream< CharT, Traits > &is, XorwowEngine< Eng, D, DInit > &eng) |
Xorwow RNG engine.
Use Marsaglia's Xorwow algorithm with an Xorshift engine.
Definition at line 339 of file xorshift.hpp.
typedef Eng vsmc::XorwowEngine< Eng, D, DInit >::engine_type |
Definition at line 344 of file xorshift.hpp.
typedef Eng::result_type vsmc::XorwowEngine< Eng, D, DInit >::result_type |
Definition at line 343 of file xorshift.hpp.
|
inlineexplicit |
Definition at line 346 of file xorshift.hpp.
|
inlineexplicit |
Definition at line 349 of file xorshift.hpp.
|
inline |
Definition at line 373 of file xorshift.hpp.
|
inlinestatic |
Definition at line 384 of file xorshift.hpp.
|
inlinestatic |
Definition at line 383 of file xorshift.hpp.
|
inline |
Definition at line 370 of file xorshift.hpp.
|
inline |
Definition at line 354 of file xorshift.hpp.
|
inline |
Definition at line 361 of file xorshift.hpp.
|
friend |
Definition at line 391 of file xorshift.hpp.
|
friend |
Definition at line 397 of file xorshift.hpp.
|
friend |
Definition at line 386 of file xorshift.hpp.
|
friend |
Definition at line 410 of file xorshift.hpp.
|
static |
Definition at line 380 of file xorshift.hpp.
|
static |
Definition at line 379 of file xorshift.hpp.