| /freebsd/contrib/llvm-project/libcxx/include/__cxx03/__random/ |
| H A D | linear_congruential_engine.h | 65 typedef unsigned long long result_type; 66 _LIBCPP_HIDE_FROM_ABI static result_type next(result_type __xp) { 72 return static_cast<result_type>((__a * __x + __c) % __m); 79 typedef unsigned long long result_type; 80 _LIBCPP_HIDE_FROM_ABI static result_type next(result_type __x) { 82 const result_type __q = __m / __a; 83 const result_type __r = __m % __a; 84 const result_type __t0 = __a * (__x % __q); 85 const result_type __t1 = __r * (__x / __q); 94 typedef unsigned long long result_type; [all …]
|
| H A D | gamma_distribution.h | 36 typedef _RealType result_type; typedef 39 result_type __alpha_; 40 result_type __beta_; 45 _LIBCPP_HIDE_FROM_ABI explicit param_type(result_type __alpha = 1, result_type __beta = 1) 48 _LIBCPP_HIDE_FROM_ABI result_type alpha() const { return __alpha_; } in alpha() 49 _LIBCPP_HIDE_FROM_ABI result_type beta() const { return __beta_; } in beta() 62 _LIBCPP_HIDE_FROM_ABI explicit gamma_distribution(result_type __alpha = 1, result_type __beta = 1) 69 _LIBCPP_HIDE_FROM_ABI result_type operator()(_URNG& __g) { in operator() 73 _LIBCPP_HIDE_FROM_ABI result_type operator()(_URNG& __g, const param_type& __p); 76 _LIBCPP_HIDE_FROM_ABI result_type alpha() const { return __p_.alpha(); } in alpha() [all …]
|
| H A D | uniform_int_distribution.h | 36 typedef _UIntType result_type; typedef 39 typedef typename _Engine::result_type _Engine_result_type; 40 …typedef __conditional_t<sizeof(_Engine_result_type) <= sizeof(result_type), result_type, _Engine_r… 63 …_LIBCPP_HIDE_FROM_ABI result_type operator()() { return __eval(integral_constant<bool, _Rp != 0>()… in operator() 66 _LIBCPP_HIDE_FROM_ABI result_type __eval(false_type); 67 _LIBCPP_HIDE_FROM_ABI result_type __eval(true_type); 100 return static_cast<result_type>(__e_() & __mask0_); in __eval() 105 const size_t __w_rt = numeric_limits<result_type>::digits; in __eval() 106 result_type __sp = 0; in __eval() 138 typedef _IntType result_type; typedef [all …]
|
| H A D | normal_distribution.h | 35 typedef _RealType result_type; typedef 38 result_type __mean_; 39 result_type __stddev_; 44 _LIBCPP_HIDE_FROM_ABI explicit param_type(result_type __mean = 0, result_type __stddev = 1) 47 _LIBCPP_HIDE_FROM_ABI result_type mean() const { return __mean_; } in mean() 48 _LIBCPP_HIDE_FROM_ABI result_type stddev() const { return __stddev_; } in stddev() 58 result_type __v_; 63 …_LIBCPP_HIDE_FROM_ABI explicit normal_distribution(result_type __mean = 0, result_type __stddev = … 70 _LIBCPP_HIDE_FROM_ABI result_type operator()(_URNG& __g) { in operator() 74 _LIBCPP_HIDE_FROM_ABI result_type operator()(_URNG& __g, const param_type& __p); [all …]
|
| H A D | fisher_f_distribution.h | 34 typedef _RealType result_type; typedef 37 result_type __m_; 38 result_type __n_; 43 …_LIBCPP_HIDE_FROM_ABI explicit param_type(result_type __m = 1, result_type __n = 1) : __m_(__m), _… in __m_() 45 _LIBCPP_HIDE_FROM_ABI result_type m() const { return __m_; } in m() 46 _LIBCPP_HIDE_FROM_ABI result_type n() const { return __n_; } in n() 59 _LIBCPP_HIDE_FROM_ABI explicit fisher_f_distribution(result_type __m = 1, result_type __n = 1) 66 _LIBCPP_HIDE_FROM_ABI result_type operator()(_URNG& __g) { in operator() 70 _LIBCPP_HIDE_FROM_ABI result_type operator()(_URNG& __g, const param_type& __p); 73 _LIBCPP_HIDE_FROM_ABI result_type m() const { return __p_.m(); } in m() [all …]
|
| H A D | weibull_distribution.h | 35 typedef _RealType result_type; typedef 38 result_type __a_; 39 result_type __b_; 44 …_LIBCPP_HIDE_FROM_ABI explicit param_type(result_type __a = 1, result_type __b = 1) : __a_(__a), _… in __a_() 46 _LIBCPP_HIDE_FROM_ABI result_type a() const { return __a_; } in a() 47 _LIBCPP_HIDE_FROM_ABI result_type b() const { return __b_; } in b() 60 _LIBCPP_HIDE_FROM_ABI explicit weibull_distribution(result_type __a = 1, result_type __b = 1) 67 _LIBCPP_HIDE_FROM_ABI result_type operator()(_URNG& __g) { in operator() 71 _LIBCPP_HIDE_FROM_ABI result_type operator()(_URNG& __g, const param_type& __p) { in operator() 72 return __p.b() * std::pow(exponential_distribution<result_type>()(__g), 1 / __p.a()); in operator() [all …]
|
| H A D | cauchy_distribution.h | 35 typedef _RealType result_type; typedef 38 result_type __a_; 39 result_type __b_; 44 …_LIBCPP_HIDE_FROM_ABI explicit param_type(result_type __a = 0, result_type __b = 1) : __a_(__a), _… in __a_() 46 _LIBCPP_HIDE_FROM_ABI result_type a() const { return __a_; } in a() 47 _LIBCPP_HIDE_FROM_ABI result_type b() const { return __b_; } in b() 60 _LIBCPP_HIDE_FROM_ABI explicit cauchy_distribution(result_type __a = 0, result_type __b = 1) 67 _LIBCPP_HIDE_FROM_ABI result_type operator()(_URNG& __g) { in operator() 71 _LIBCPP_HIDE_FROM_ABI result_type operator()(_URNG& __g, const param_type& __p); 74 _LIBCPP_HIDE_FROM_ABI result_type a() const { return __p_.a(); } in a() [all …]
|
| H A D | extreme_value_distribution.h | 35 typedef _RealType result_type; typedef 38 result_type __a_; 39 result_type __b_; 44 …_LIBCPP_HIDE_FROM_ABI explicit param_type(result_type __a = 0, result_type __b = 1) : __a_(__a), _… in __a_() 46 _LIBCPP_HIDE_FROM_ABI result_type a() const { return __a_; } in a() 47 _LIBCPP_HIDE_FROM_ABI result_type b() const { return __b_; } in b() 60 …_LIBCPP_HIDE_FROM_ABI explicit extreme_value_distribution(result_type __a = 0, result_type __b = 1) 67 _LIBCPP_HIDE_FROM_ABI result_type operator()(_URNG& __g) { in operator() 71 _LIBCPP_HIDE_FROM_ABI result_type operator()(_URNG& __g, const param_type& __p); 74 _LIBCPP_HIDE_FROM_ABI result_type a() const { return __p_.a(); } in a() [all …]
|
| H A D | lognormal_distribution.h | 35 typedef _RealType result_type; typedef 38 result_type __m_; 39 result_type __s_; 44 …_LIBCPP_HIDE_FROM_ABI explicit param_type(result_type __m = 0, result_type __s = 1) : __m_(__m), _… in __m_() 46 _LIBCPP_HIDE_FROM_ABI result_type m() const { return __m_; } in m() 47 _LIBCPP_HIDE_FROM_ABI result_type s() const { return __s_; } in s() 56 normal_distribution<result_type> __nd_; 60 …_LIBCPP_HIDE_FROM_ABI explicit lognormal_distribution(result_type __m = 0, result_type __s = 1) : … in __nd_() 66 _LIBCPP_HIDE_FROM_ABI result_type operator()(_URNG& __g) { in operator() 71 _LIBCPP_HIDE_FROM_ABI result_type operator()(_URNG& __g, const param_type& __p) { in operator() [all …]
|
| H A D | uniform_real_distribution.h | 34 typedef _RealType result_type; typedef 37 result_type __a_; 38 result_type __b_; 43 …_LIBCPP_HIDE_FROM_ABI explicit param_type(result_type __a = 0, result_type __b = 1) : __a_(__a), _… in __a_() 45 _LIBCPP_HIDE_FROM_ABI result_type a() const { return __a_; } in a() 46 _LIBCPP_HIDE_FROM_ABI result_type b() const { return __b_; } in b() 59 _LIBCPP_HIDE_FROM_ABI explicit uniform_real_distribution(result_type __a = 0, result_type __b = 1) 66 _LIBCPP_HIDE_FROM_ABI result_type operator()(_URNG& __g) { in operator() 70 _LIBCPP_HIDE_FROM_ABI result_type operator()(_URNG& __g, const param_type& __p); 73 _LIBCPP_HIDE_FROM_ABI result_type a() const { return __p_.a(); } in a() [all …]
|
| H A D | independent_bits_engine.h | 48 typedef _UIntType result_type; typedef 53 static const result_type _Dt = numeric_limits<result_type>::digits; 57 typedef typename _Engine::result_type _Engine_result_type; 58 …typedef __conditional_t<sizeof(_Engine_result_type) <= sizeof(result_type), result_type, _Engine_r… 75 static const result_type _Min = 0; 76 …static const result_type _Max = __w == _Dt ? result_type(~0) : (result_type(1) << __w) - result_ty… 80 _LIBCPP_HIDE_FROM_ABI static result_type min() { return _Min; } in min() 81 _LIBCPP_HIDE_FROM_ABI static result_type max() { return _Max; } in max() 86 _LIBCPP_HIDE_FROM_ABI explicit independent_bits_engine(result_type __sd) : __e_(__sd) {} in independent_bits_engine() 93 _LIBCPP_HIDE_FROM_ABI void seed(result_type __sd) { __e_.seed(__sd); } in seed() [all …]
|
| /freebsd/contrib/llvm-project/libcxx/include/__random/ |
| H A D | linear_congruential_engine.h | 69 typedef unsigned long long result_type; 70 _LIBCPP_HIDE_FROM_ABI static result_type next(result_type __xp) { 76 return static_cast<result_type>((__a * __x + __c) % __m); 83 typedef unsigned long long result_type; 84 _LIBCPP_HIDE_FROM_ABI static result_type next(result_type __x) { 86 const result_type __q = __m / __a; 87 const result_type __r = __m % __a; 88 const result_type __t0 = __a * (__x % __q); 89 const result_type __t1 = __r * (__x / __q); 98 typedef unsigned long long result_type; [all …]
|
| H A D | gamma_distribution.h | 36 typedef _RealType result_type; typedef 39 result_type __alpha_; 40 result_type __beta_; 45 _LIBCPP_HIDE_FROM_ABI explicit param_type(result_type __alpha = 1, result_type __beta = 1) 48 _LIBCPP_HIDE_FROM_ABI result_type alpha() const { return __alpha_; } in alpha() 49 _LIBCPP_HIDE_FROM_ABI result_type beta() const { return __beta_; } in beta() 64 _LIBCPP_HIDE_FROM_ABI explicit gamma_distribution(result_type __alpha, result_type __beta = 1) 67 _LIBCPP_HIDE_FROM_ABI explicit gamma_distribution(result_type __alpha = 1, result_type __beta = 1) 75 _LIBCPP_HIDE_FROM_ABI result_type operator()(_URNG& __g) { in operator() 79 _LIBCPP_HIDE_FROM_ABI result_type operator()(_URNG& __g, const param_type& __p); [all …]
|
| H A D | fisher_f_distribution.h | 34 typedef _RealType result_type; typedef 37 result_type __m_; 38 result_type __n_; 43 …_LIBCPP_HIDE_FROM_ABI explicit param_type(result_type __m = 1, result_type __n = 1) : __m_(__m), _… in __m_() 45 _LIBCPP_HIDE_FROM_ABI result_type m() const { return __m_; } in m() 46 _LIBCPP_HIDE_FROM_ABI result_type n() const { return __n_; } in n() 61 _LIBCPP_HIDE_FROM_ABI explicit fisher_f_distribution(result_type __m, result_type __n = 1) 64 _LIBCPP_HIDE_FROM_ABI explicit fisher_f_distribution(result_type __m = 1, result_type __n = 1) 72 _LIBCPP_HIDE_FROM_ABI result_type operator()(_URNG& __g) { in operator() 76 _LIBCPP_HIDE_FROM_ABI result_type operator()(_URNG& __g, const param_type& __p); [all …]
|
| H A D | uniform_int_distribution.h | 36 typedef _UIntType result_type; typedef 39 typedef typename _Engine::result_type _Engine_result_type; 40 …typedef __conditional_t<sizeof(_Engine_result_type) <= sizeof(result_type), result_type, _Engine_r… 67 …_LIBCPP_HIDE_FROM_ABI result_type operator()() { return __eval(integral_constant<bool, _Rp != 0>()… in operator() 70 _LIBCPP_HIDE_FROM_ABI result_type __eval(false_type); 71 _LIBCPP_HIDE_FROM_ABI result_type __eval(true_type); 104 return static_cast<result_type>(__e_() & __mask0_); in __eval() 109 const size_t __w_rt = numeric_limits<result_type>::digits; in __eval() 110 result_type __sp = 0; in __eval() 142 typedef _IntType result_type; typedef [all …]
|
| H A D | normal_distribution.h | 35 typedef _RealType result_type; typedef 38 result_type __mean_; 39 result_type __stddev_; 44 _LIBCPP_HIDE_FROM_ABI explicit param_type(result_type __mean = 0, result_type __stddev = 1) 47 _LIBCPP_HIDE_FROM_ABI result_type mean() const { return __mean_; } in mean() 48 _LIBCPP_HIDE_FROM_ABI result_type stddev() const { return __stddev_; } in stddev() 58 result_type __v_; 65 _LIBCPP_HIDE_FROM_ABI explicit normal_distribution(result_type __mean, result_type __stddev = 1) 68 …_LIBCPP_HIDE_FROM_ABI explicit normal_distribution(result_type __mean = 0, result_type __stddev = … 76 _LIBCPP_HIDE_FROM_ABI result_type operator()(_URNG& __g) { in operator() [all …]
|
| H A D | weibull_distribution.h | 35 typedef _RealType result_type; typedef 38 result_type __a_; 39 result_type __b_; 44 …_LIBCPP_HIDE_FROM_ABI explicit param_type(result_type __a = 1, result_type __b = 1) : __a_(__a), _… in __a_() 46 _LIBCPP_HIDE_FROM_ABI result_type a() const { return __a_; } in a() 47 _LIBCPP_HIDE_FROM_ABI result_type b() const { return __b_; } in b() 62 _LIBCPP_HIDE_FROM_ABI explicit weibull_distribution(result_type __a, result_type __b = 1) 65 _LIBCPP_HIDE_FROM_ABI explicit weibull_distribution(result_type __a = 1, result_type __b = 1) 73 _LIBCPP_HIDE_FROM_ABI result_type operator()(_URNG& __g) { in operator() 77 _LIBCPP_HIDE_FROM_ABI result_type operator()(_URNG& __g, const param_type& __p) { in operator() [all …]
|
| H A D | cauchy_distribution.h | 35 typedef _RealType result_type; typedef 38 result_type __a_; 39 result_type __b_; 44 …_LIBCPP_HIDE_FROM_ABI explicit param_type(result_type __a = 0, result_type __b = 1) : __a_(__a), _… in __a_() 46 _LIBCPP_HIDE_FROM_ABI result_type a() const { return __a_; } in a() 47 _LIBCPP_HIDE_FROM_ABI result_type b() const { return __b_; } in b() 62 _LIBCPP_HIDE_FROM_ABI explicit cauchy_distribution(result_type __a, result_type __b = 1) 65 _LIBCPP_HIDE_FROM_ABI explicit cauchy_distribution(result_type __a = 0, result_type __b = 1) 73 _LIBCPP_HIDE_FROM_ABI result_type operator()(_URNG& __g) { in operator() 77 _LIBCPP_HIDE_FROM_ABI result_type operator()(_URNG& __g, const param_type& __p); [all …]
|
| H A D | extreme_value_distribution.h | 35 typedef _RealType result_type; typedef 38 result_type __a_; 39 result_type __b_; 44 …_LIBCPP_HIDE_FROM_ABI explicit param_type(result_type __a = 0, result_type __b = 1) : __a_(__a), _… in __a_() 46 _LIBCPP_HIDE_FROM_ABI result_type a() const { return __a_; } in a() 47 _LIBCPP_HIDE_FROM_ABI result_type b() const { return __b_; } in b() 62 _LIBCPP_HIDE_FROM_ABI explicit extreme_value_distribution(result_type __a, result_type __b = 1) 65 …_LIBCPP_HIDE_FROM_ABI explicit extreme_value_distribution(result_type __a = 0, result_type __b = 1) 73 _LIBCPP_HIDE_FROM_ABI result_type operator()(_URNG& __g) { in operator() 77 _LIBCPP_HIDE_FROM_ABI result_type operator()(_URNG& __g, const param_type& __p); [all …]
|
| H A D | lognormal_distribution.h | 35 typedef _RealType result_type; typedef 38 result_type __m_; 39 result_type __s_; 44 …_LIBCPP_HIDE_FROM_ABI explicit param_type(result_type __m = 0, result_type __s = 1) : __m_(__m), _… in __m_() 46 _LIBCPP_HIDE_FROM_ABI result_type m() const { return __m_; } in m() 47 _LIBCPP_HIDE_FROM_ABI result_type s() const { return __s_; } in s() 56 normal_distribution<result_type> __nd_; 62 …_LIBCPP_HIDE_FROM_ABI explicit lognormal_distribution(result_type __m, result_type __s = 1) : __nd… in __nd_() 64 …_LIBCPP_HIDE_FROM_ABI explicit lognormal_distribution(result_type __m = 0, result_type __s = 1) : … 71 _LIBCPP_HIDE_FROM_ABI result_type operator()(_URNG& __g) { in operator() [all …]
|
| H A D | uniform_real_distribution.h | 34 typedef _RealType result_type; typedef 37 result_type __a_; 38 result_type __b_; 43 …_LIBCPP_HIDE_FROM_ABI explicit param_type(result_type __a = 0, result_type __b = 1) : __a_(__a), _… in __a_() 45 _LIBCPP_HIDE_FROM_ABI result_type a() const { return __a_; } in a() 46 _LIBCPP_HIDE_FROM_ABI result_type b() const { return __b_; } in b() 61 _LIBCPP_HIDE_FROM_ABI explicit uniform_real_distribution(result_type __a, result_type __b = 1) 64 _LIBCPP_HIDE_FROM_ABI explicit uniform_real_distribution(result_type __a = 0, result_type __b = 1) 72 _LIBCPP_HIDE_FROM_ABI result_type operator()(_URNG& __g) { in operator() 76 _LIBCPP_HIDE_FROM_ABI result_type operator()(_URNG& __g, const param_type& __p); [all …]
|
| H A D | student_t_distribution.h | 36 typedef _RealType result_type; typedef 39 result_type __n_; 44 _LIBCPP_HIDE_FROM_ABI explicit param_type(result_type __n = 1) : __n_(__n) {} in __n_() 46 _LIBCPP_HIDE_FROM_ABI result_type n() const { return __n_; } in n() 56 normal_distribution<result_type> __nd_; 62 _LIBCPP_HIDE_FROM_ABI explicit student_t_distribution(result_type __n) : __p_(param_type(__n)) {} in student_t_distribution() 64 …_LIBCPP_HIDE_FROM_ABI explicit student_t_distribution(result_type __n = 1) : __p_(param_type(__n))… 71 _LIBCPP_HIDE_FROM_ABI result_type operator()(_URNG& __g) { in operator() 75 _LIBCPP_HIDE_FROM_ABI result_type operator()(_URNG& __g, const param_type& __p); 78 _LIBCPP_HIDE_FROM_ABI result_type n() const { return __p_.n(); } in n() [all …]
|
| H A D | exponential_distribution.h | 36 typedef _RealType result_type; typedef 39 result_type __lambda_; 44 _LIBCPP_HIDE_FROM_ABI explicit param_type(result_type __lambda = 1) : __lambda_(__lambda) {} in __lambda_() 46 _LIBCPP_HIDE_FROM_ABI result_type lambda() const { return __lambda_; } in lambda() 61 …_LIBCPP_HIDE_FROM_ABI explicit exponential_distribution(result_type __lambda) : __p_(param_type(__… in exponential_distribution() 63 …_LIBCPP_HIDE_FROM_ABI explicit exponential_distribution(result_type __lambda = 1) : __p_(param_typ… 70 _LIBCPP_HIDE_FROM_ABI result_type operator()(_URNG& __g) { in operator() 74 _LIBCPP_HIDE_FROM_ABI result_type operator()(_URNG& __g, const param_type& __p); 77 _LIBCPP_HIDE_FROM_ABI result_type lambda() const { return __p_.lambda(); } in lambda() 82 _LIBCPP_HIDE_FROM_ABI result_type min() const { return 0; } in min() [all …]
|
| /freebsd/contrib/llvm-project/libcxx/include/ |
| H A D | random | 31 typedef UIntType result_type; 34 static constexpr result_type multiplier = a; 35 static constexpr result_type increment = c; 36 static constexpr result_type modulus = m; 37 static constexpr result_type min() { return c == 0u ? 1u: 0u;} 38 static constexpr result_type max() { return m - 1u;} 39 static constexpr result_type default_seed = 1u; 42 explicit linear_congruential_engine(result_type s = default_seed); // before C++20 44 explicit linear_congruential_engine(result_type s); // C++20 46 void seed(result_type s = default_seed); [all …]
|
| /freebsd/contrib/llvm-project/libcxx/include/__cxx03/ |
| H A D | random | 31 typedef UIntType result_type; 34 static constexpr result_type multiplier = a; 35 static constexpr result_type increment = c; 36 static constexpr result_type modulus = m; 37 static constexpr result_type min() { return c == 0u ? 1u: 0u;} 38 static constexpr result_type max() { return m - 1u;} 39 static constexpr result_type default_seed = 1u; 42 explicit linear_congruential_engine(result_type s = default_seed); // before C++20 44 explicit linear_congruential_engine(result_type s); // C++20 46 void seed(result_type s = default_seed); [all …]
|