vSMC
vSMC: Scalable Monte Carlo
Classes | Namespaces | Macros | Typedefs
seed.hpp File Reference
#include <vsmc/rng/internal/common.hpp>
#include <vsmc/rng/counter.hpp>

Go to the source code of this file.

Classes

class  vsmc::SeedGenerator< ID, ResultType >
 Seed generator. More...
 
class  vsmc::SeedGenerator< ID, std::array< ResultType, K > >
 Seed generator counters. More...
 

Namespaces

 vsmc
 

Macros

#define VSMC_RUNTIME_ASSERT_RNG_SEED_GENERATOR_MODULO(div, rem)
 
#define VSMC_RUNTIME_ASSERT_RNG_SEED_MAX(seed_max)
 
#define VSMC_RUNTIME_WARNING_RNG_SEED_GENERATOR_MODULO(div, rem)
 
#define VSMC_SEED_RESULT_TYPE   unsigned
 Default result type of Seed. More...
 

Typedefs

using vsmc::Seed = SeedGenerator< NullType, unsigned >
 The default Seed type. More...
 

Macro Definition Documentation

#define VSMC_RUNTIME_ASSERT_RNG_SEED_GENERATOR_MODULO (   div,
  rem 
)
Value:
"**SeedGenerator::modulo** " \
"REMAINDER IS NOT SMALLER THAN THE DIVISOR")
#define VSMC_RUNTIME_ASSERT(cond, msg)
Definition: assert.hpp:53
void div(std::size_t n, const float *a, const float *b, float *y)
Definition: vmath.hpp:128

Definition at line 38 of file seed.hpp.

#define VSMC_RUNTIME_ASSERT_RNG_SEED_MAX (   seed_max)
Value:
VSMC_RUNTIME_ASSERT((seed_max > 1), \
"**SeedGenerator::modulo** " \
"THE MAXIMUM OF THE INTERNAL SEED IS NO LARGER THAN 1")
#define VSMC_RUNTIME_ASSERT(cond, msg)
Definition: assert.hpp:53

Definition at line 48 of file seed.hpp.

#define VSMC_RUNTIME_WARNING_RNG_SEED_GENERATOR_MODULO (   div,
  rem 
)
Value:
VSMC_RUNTIME_WARNING((div == 1 && rem == 0), \
"**SeedGenerator::modulo** " \
"COUNTER TYPE SEED DOES NOT SUPPORT MODULO")
#define VSMC_RUNTIME_WARNING(cond, msg)
Definition: assert.hpp:75
void div(std::size_t n, const float *a, const float *b, float *y)
Definition: vmath.hpp:128

Definition at line 43 of file seed.hpp.