vSMC
vSMC: Scalable Monte Carlo
Classes | Namespaces | Macros
discrete_distribution.hpp File Reference
#include <vsmc/internal/common.hpp>
#include <vsmc/math/cblas.hpp>

Go to the source code of this file.

Classes

class  vsmc::DiscreteDistribution< IntType >
 Draw a single sample given weights. More...
 

Namespaces

 vsmc
 

Macros

#define VSMC_RUNTIME_ASSERT_RNG_DISCRETE_DISTRIBUTION_POSITIVE(param)
 

Macro Definition Documentation

#define VSMC_RUNTIME_ASSERT_RNG_DISCRETE_DISTRIBUTION_POSITIVE (   param)
Value:
VSMC_RUNTIME_ASSERT(is_positive(param), \
("**DiscreteDistribution** WEIGHTS ARE NOT NON-NEGATIVE"));
#define VSMC_RUNTIME_ASSERT(cond, msg)
Definition: assert.hpp:64

Definition at line 38 of file discrete_distribution.hpp.