vSMC
vSMC: Scalable Monte Carlo
Public Types | Public Member Functions | List of all members
vsmc::MKLBernoulliDistribution< Method > Class Template Reference

MKL Bernoulli distribution. More...

#include <vsmc/rng/mkl.hpp>

Public Types

typedef MKL_INT result_type
 
- Public Types inherited from vsmc::MKLDistribution< MKL_INT, MKLBernoulliDistribution< Method > >
typedef MKL_INT result_type
 

Public Member Functions

 MKLBernoulliDistribution (double p=0.5)
 
template<MKL_INT BRNG>
void generate (MKLStream< BRNG > &stream, MKL_INT n, result_type *r)
 
- Public Member Functions inherited from vsmc::MKLDistribution< MKL_INT, MKLBernoulliDistribution< Method > >
 MKLDistribution ()
 
void buffer_size (MKL_INT size)
 Set the buffer size, zero or negative value restore the default. More...
 
MKL_INT buffer_size () const
 
result_type operator() (MKLStream< BRNG > &stream)
 
void operator() (MKLStream< BRNG > &stream, MKL_INT n, result_type *r)
 
void reset ()
 

Additional Inherited Members

- Protected Member Functions inherited from vsmc::MKLDistribution< MKL_INT, MKLBernoulliDistribution< Method > >
void generate_error_check (int status, const char *name)
 

Detailed Description

template<MKL_INT Method>
class vsmc::MKLBernoulliDistribution< Method >

MKL Bernoulli distribution.

Definition at line 70 of file mkl.hpp.

Member Typedef Documentation

template<MKL_INT Method>
typedef MKL_INT vsmc::MKLBernoulliDistribution< Method >::result_type

Definition at line 772 of file mkl.hpp.

Constructor & Destructor Documentation

template<MKL_INT Method>
vsmc::MKLBernoulliDistribution< Method >::MKLBernoulliDistribution ( double  p = 0.5)
inlineexplicit

Definition at line 774 of file mkl.hpp.

Member Function Documentation

template<MKL_INT Method>
template<MKL_INT BRNG>
void vsmc::MKLBernoulliDistribution< Method >::generate ( MKLStream< BRNG > &  stream,
MKL_INT  n,
result_type r 
)
inline

Definition at line 777 of file mkl.hpp.