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< T, 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...
 
#define VSMC_STATIC_ASSERT_RNG_SEED_GENERATOR_RESULT_TYPE(T)
 

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:55
void div(std::size_t n, const float *a, const float *b, float *y)
Definition: vmath.hpp:128

Definition at line 42 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:55

Definition at line 52 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:77
void div(std::size_t n, const float *a, const float *b, float *y)
Definition: vmath.hpp:128

Definition at line 47 of file seed.hpp.

#define VSMC_STATIC_ASSERT_RNG_SEED_GENERATOR_RESULT_TYPE (   T)
Value:
VSMC_STATIC_ASSERT((std::is_unsigned<T>::value), \
"**SeedGenerator** USED WITH ResultType NOT AN UNSIGNED INTEGER")
#define VSMC_STATIC_ASSERT(cond, msg)
Definition: assert.hpp:42

Definition at line 38 of file seed.hpp.