vSMC
vSMC: Scalable Monte Carlo
Public Types | Public Member Functions | Static Public Member Functions | List of all members
vsmc::ThreefryGeneratorSSE2< ResultType, K, Rounds > Class Template Reference

Threefry RNG generator using SSE2. More...

#include <vsmc/rng/threefry.hpp>

Public Types

using ctr_type = std::array< ResultType, K >
 
using key_type = std::array< ResultType, K >
 
using result_type = ResultType
 

Public Member Functions

void operator() (ctr_type &ctr, const key_type &key, std::array< ResultType, size()> &buffer) const
 
void operator() (ctr_type &ctr, const key_type &key, std::size_t n, std::array< ResultType, size()> *buffer) const
 
void reset (const key_type &)
 

Static Public Member Functions

static constexpr std::size_t size ()
 

Detailed Description

template<typename ResultType, std::size_t K = 4, std::size_t Rounds = 20>
class vsmc::ThreefryGeneratorSSE2< ResultType, K, Rounds >

Threefry RNG generator using SSE2.

Definition at line 491 of file threefry.hpp.

Member Typedef Documentation

template<typename ResultType , std::size_t K = 4, std::size_t Rounds = 20>
using vsmc::ThreefryGeneratorSSE2< ResultType, K, Rounds >::ctr_type = std::array<ResultType, K>

Definition at line 507 of file threefry.hpp.

template<typename ResultType , std::size_t K = 4, std::size_t Rounds = 20>
using vsmc::ThreefryGeneratorSSE2< ResultType, K, Rounds >::key_type = std::array<ResultType, K>

Definition at line 508 of file threefry.hpp.

template<typename ResultType , std::size_t K = 4, std::size_t Rounds = 20>
using vsmc::ThreefryGeneratorSSE2< ResultType, K, Rounds >::result_type = ResultType

Definition at line 506 of file threefry.hpp.

Member Function Documentation

template<typename ResultType , std::size_t K = 4, std::size_t Rounds = 20>
void vsmc::ThreefryGeneratorSSE2< ResultType, K, Rounds >::operator() ( ctr_type ctr,
const key_type key,
std::array< ResultType, size()> &  buffer 
) const
inline

Definition at line 517 of file threefry.hpp.

template<typename ResultType , std::size_t K = 4, std::size_t Rounds = 20>
void vsmc::ThreefryGeneratorSSE2< ResultType, K, Rounds >::operator() ( ctr_type ctr,
const key_type key,
std::size_t  n,
std::array< ResultType, size()> *  buffer 
) const
inline

Definition at line 534 of file threefry.hpp.

template<typename ResultType , std::size_t K = 4, std::size_t Rounds = 20>
void vsmc::ThreefryGeneratorSSE2< ResultType, K, Rounds >::reset ( const key_type )
inline

Definition at line 515 of file threefry.hpp.

template<typename ResultType , std::size_t K = 4, std::size_t Rounds = 20>
static constexpr std::size_t vsmc::ThreefryGeneratorSSE2< ResultType, K, Rounds >::size ( )
inlinestatic

Definition at line 510 of file threefry.hpp.