32 #ifndef VSMC_SMP_BACKEND_SEQ_HPP
33 #define VSMC_SMP_BACKEND_SEQ_HPP
50 explicit StateSEQ (size_type N) : BaseState(N) {}
55 template <
typename T,
typename Derived>
56 class InitializeSEQ :
public InitializeBase<T, Derived>
63 const size_type N =
static_cast<size_type
>(particle.
size());
66 std::size_t accept = 0;
67 for (size_type i = 0; i != N; ++i)
81 template <
typename T,
typename Derived>
89 const size_type N =
static_cast<size_type
>(particle.
size());
91 std::size_t accept = 0;
92 for (size_type i = 0; i != N; ++i)
106 template <
typename T,
typename Derived>
115 const size_type N =
static_cast<size_type
>(particle.
size());
117 for (size_type i = 0; i != N; ++i) {
131 template <
typename T,
typename Derived>
140 const size_type N =
static_cast<size_type
>(particle.
size());
142 for (size_type i = 0; i != N; ++i) {
158 #endif // VSMC_SMP_BACKEND_SEQ_HPP
double operator()(std::size_t iter, const Particle< T > &particle, double *res)
Particle class representing the whole particle set.
void initialize_param(Particle< T > &particle, void *param)
traits::SizeTypeTrait< BaseState >::type size_type
std::size_t operator()(Particle< T > &particle, void *param)
void pre_processor(Particle< T > &particle)
Monitor evalution base dispatch class.
void operator()(std::size_t iter, std::size_t dim, const Particle< T > &particle, double *res)
void post_processor(std::size_t iter, const Particle< T > &particle)
Monitor::eval_type subtype.
double path_grid(std::size_t iter, const Particle< T > &particle)
void post_processor(std::size_t iter, Particle< T > &particle)
std::size_t move_state(std::size_t iter, SingleParticle< T > sp)
void pre_processor(std::size_t iter, Particle< T > &particle)
void monitor_state(std::size_t iter, std::size_t dim, ConstSingleParticle< T > csp, double *res)
void post_processor(std::size_t iter, const Particle< T > &particle)
std::size_t operator()(std::size_t iter, Particle< T > &particle)
std::size_t initialize_state(SingleParticle< T > sp)
void pre_processor(std::size_t iter, const Particle< T > &particle)
Move base dispatch class.
traits::SizeTypeTrait< T >::type size_type
internal::SizeTypeDispatch< T, value >::type type
Particle::value_type subtype.
double path_state(std::size_t iter, ConstSingleParticle< T > csp)
void post_processor(Particle< T > &particle)
Path evalution base dispatch class.
size_type size() const
Number of particles.
A thin wrapper over a complete Particle.
Sampler::move_type subtype.
void pre_processor(std::size_t iter, const Particle< T > &particle)
#define VSMC_DEFINE_SMP_FORWARD(Name)
A const variant to SingleParticle.
#define VSMC_DEFINE_SMP_IMPL_COPY(Impl, Name)