Celeritas  0.5.0-86+4a8eea4
Classes | Functions
Selector.hh File Reference
#include <type_traits>
#include "corecel/cont/Range.hh"
#include "corecel/math/Algorithms.hh"
#include "corecel/math/SoftEqual.hh"
#include "distribution/GenerateCanonical.hh"
This graph shows which files directly or indirectly include this file:

Classes

class  celeritas::Selector< F, T >
 On-the-fly selection of a weighted discrete distribution. More...
 

Functions

template<class F , class T >
CELER_FUNCTION Selector< F, T > celeritas::make_selector (F &&func, T size, decltype(func(size)) total=1)
 Create a selector object from a function and total accumulated value.