vSMC
vSMC: Scalable Monte Carlo
vsmc::traits::MKLUniformBitsTrait< MKL_INT, typename > Struct Template Reference

MKLEngine uniform bits trait. More...

#include <vsmc/rng/mkl.hpp>

Detailed Description

template<MKL_INT, typename>
struct vsmc::traits::MKLUniformBitsTrait< MKL_INT, typename >

MKLEngine uniform bits trait.

To use MKLEngine with those MKL BRNG that has not been typedefed by vSMC, one need to specialize this trait, which has member type type, and this type has member operator() (MKLStream<BRNG> &, MKL_INT, ResultType *) such that given the stream object, it is able to generate uniform integers.

This traits also need to have two static constant member data, min and max

Definition at line 203 of file mkl.hpp.