32 #ifndef MCKL_RANDOM_WEIBULL_DISTRIBUTION_HPP 33 #define MCKL_RANDOM_WEIBULL_DISTRIBUTION_HPP 43 template <
typename RealType>
46 return a > 0 && b > 0;
49 template <std::
size_t,
typename RealType,
typename RNGType>
51 RNGType &rng, std::size_t n, RealType *r, RealType a, RealType b)
60 mul(n, static_cast<RealType>(-1), r, r);
71 Weibull, weibull, RealType, RealType, a, RealType, b)
73 template <
typename RealType>
91 template <
typename RNGType>
98 return param.
a() == 1 ?
110 #endif // MCKL_RANDOM_WEIBULL_DISTRIBUTION_HPP #define MCKL_DEFINE_RANDOM_DISTRIBUTION_2( Name, name, T, T1, p1, v1, T2, p2, v2)
void pow(std::size_t n, const float *a, const float *b, float *y)
void mul(std::size_t n, const float *a, const float *b, float *y)
#define MCKL_PUSH_CLANG_WARNING(warning)
void log(std::size_t n, const float *a, float *y)
void u01_oo_distribution(RNGType &rng, std::size_t n, RealType *r)
void weibull_distribution_impl(RNGType &rng, std::size_t n, RealType *r, RealType a, RealType b)
bool weibull_distribution_check_param(RealType a, RealType b)
#define MCKL_DEFINE_RANDOM_DISTRIBUTION_RAND(Name, T)
RealType u01(UIntType u)
Convert uniform unsigned integers to floating points within [0, 1].
Standard uniform distribution on (0, 1)
#define MCKL_PUSH_INTEL_WARNING(wid)
#define MCKL_DEFINE_RANDOM_DISTRIBUTION_BATCH_2( Name, name, T, T1, p1, T2, p2)
#define MCKL_POP_CLANG_WARNING
#define MCKL_DEFINE_RANDOM_DISTRIBUTION_MEMBER_0
#define MCKL_DEFINE_RANDOM_DISTRIBUTION_ASSERT_REAL_TYPE(Name)
#define MCKL_POP_INTEL_WARNING