vSMC  v3.0.0
Scalable Monte Carlo
Classes | Namespaces | Macros | Enumerations | Functions
sampler.hpp File Reference
#include <vsmc/internal/common.hpp>
#include <vsmc/core/monitor.hpp>
#include <vsmc/core/particle.hpp>

Go to the source code of this file.

Classes

class  vsmc::Sampler< T >
 SMC Sampler. More...
 

Namespaces

 vsmc
 

Macros

#define VSMC_RUNTIME_ASSERT_CORE_SAMPLER_FUNCTOR(func, caller, name)
 
#define VSMC_RUNTIME_ASSERT_CORE_SAMPLER_MONITOR_NAME(iter, map, func)
 

Enumerations

enum  vsmc::SamplerStage {
  vsmc::SamplerInit = 1 << 0,
  vsmc::SamplerMove = 1 << 1,
  vsmc::SamplerMCMC = 1 << 2
}
 Sampler evaluaiton stages. More...
 

Functions

constexpr SamplerStage vsmc::operator& (SamplerStage s1, SamplerStage s2)
 
SamplerStage & vsmc::operator&= (SamplerStage &s1, SamplerStage s2)
 
template<typename CharT , typename Traits , typename T >
std::basic_ostream< CharT, Traits > & vsmc::operator<< (std::basic_ostream< CharT, Traits > &os, const Sampler< T > &sampler)
 
constexpr SamplerStage vsmc::operator^ (SamplerStage s1, SamplerStage s2)
 
SamplerStage & vsmc::operator^= (SamplerStage &s1, SamplerStage s2)
 
constexpr SamplerStage vsmc::operator| (SamplerStage s1, SamplerStage s2)
 
SamplerStage & vsmc::operator|= (SamplerStage &s1, SamplerStage s2)
 
constexpr SamplerStage vsmc::operator~ (SamplerStage s)
 

Macro Definition Documentation

#define VSMC_RUNTIME_ASSERT_CORE_SAMPLER_FUNCTOR (   func,
  caller,
  name 
)
Value:
(func), "**Sampler::" #caller "** INVALID " #name " OBJECT")
#define VSMC_RUNTIME_ASSERT(cond, msg)
Definition: assert.hpp:59

Definition at line 43 of file sampler.hpp.

#define VSMC_RUNTIME_ASSERT_CORE_SAMPLER_MONITOR_NAME (   iter,
  map,
  func 
)
Value:
(iter != map.end()), "**Sampler::" #func "** INVALID MONITOR NAME")
#define VSMC_RUNTIME_ASSERT(cond, msg)
Definition: assert.hpp:59

Definition at line 39 of file sampler.hpp.