32 #ifndef VSMC_RNG_WEIBULL_DISTRIBUTION_HPP    33 #define VSMC_RNG_WEIBULL_DISTRIBUTION_HPP    45 template <
typename RealType>
    48     return a > 0 && b > 0;
    55 template <
typename RealType>
    68     template <
typename RNGType>
    73         return internal::is_equal<RealType>(
    74                    param.
a(), 
static_cast<RealType
>(1)) ?
    83 template <
typename RealType, 
typename RNGType>
    85     RNGType &rng, std::size_t n, RealType *r, RealType a, RealType b)
    88     sub(n, static_cast<RealType>(1), r, r);
    90     if (is_equal<RealType>(a, static_cast<RealType>(1))) {
    93         mul(n, static_cast<RealType>(-1), r, r);
   103 template <
typename RealType, 
typename RNGType>
   105     RNGType &rng, std::size_t n, RealType *r, RealType a, RealType b)
   107     static_assert(std::is_floating_point<RealType>::value,
   108         "**weibull_distribution** USED WITH RealType OTHER THAN FLOATING "   111     const std::size_t k = 1024;
   112     const std::size_t m = n / k;
   113     const std::size_t l = n % k;
   114     for (std::size_t i = 0; i != m; ++i, r += k)
   123 #endif // VSMC_RNG_WEIBULL_DISTRIBUTION_HPP 
void mul(std::size_t n, const float *a, const float *b, float *y)
 
bool weibull_distribution_check_param(RealType a, RealType b)
 
#define VSMC_DEFINE_RNG_DISTRIBUTION_2(Name, name, p1, v1, p2, v2)                    
 
void weibull_distribution_impl(RNGType &rng, std::size_t n, RealType *r, RealType a, RealType b)
 
void u01_distribution(RNGType &, std::size_t, RealType *)
Generate standard uniform random variates. 
 
void pow(std::size_t n, const float *a, const float *b, float *y)
 
void weibull_distribution(RNGType &, std::size_t, RealType *, RealType, RealType)
Generating weibull random variates. 
 
void sub(std::size_t n, const float *a, const float *b, float *y)
 
Standard uniform distribution. 
 
#define VSMC_DEFINE_RNG_DISTRIBUTION_RAND_2(Name, name, p1, p2)                          
 
void log(std::size_t n, const float *a, float *y)