Template Struct make_from_state_fn

Struct Documentation

template<class Particle, class State = state_t<Particle>>
struct make_from_state_fn

Function object type to create a particle from a given state.

Public Functions

inline constexpr auto operator()(State value) const

Returns a new particle from the given state.

The new particle will have a weight equal to 1.

Parameters:

value – The state to make the particle from.

Returns:

The new particle, created from the given state.