Home
last modified time | relevance | path

Searched refs:__g (Results 1 – 25 of 34) sorted by relevance

12

/freebsd-13-stable/contrib/llvm-project/libcxx/include/__algorithm/
HDsample.h42 _UniformRandomNumberGenerator& __g, in __sample() argument
49 _Distance __r = uniform_int_distribution<_Distance>(0, __k)(__g); in __sample()
67 _UniformRandomNumberGenerator& __g, in __sample() argument
71 _Distance __r = uniform_int_distribution<_Distance>(0, --__unsampled_sz)(__g); in __sample()
91 _UniformRandomNumberGenerator& __g) { in __sample() argument
99 …std::move(__first), std::move(__last), std::move(__output_iter), _CommonType(__n), __g, _PopIterCa… in __sample()
109 _UniformRandomNumberGenerator&& __g) { in sample() argument
114 …mple<_ClassicAlgPolicy>(std::move(__first), std::move(__last), std::move(__output_iter), __n, __g); in sample()
HDshuffle.h103 __rs_default __g = __rs_get(); in random_shuffle() local
105 difference_type __i = __uid(__g, _Pp(0, __d)); in random_shuffle()
136 …le(_RandomAccessIterator __first, _Sentinel __last_sentinel, _UniformRandomNumberGenerator&& __g) { in __shuffle() argument
147 difference_type __i = __uid(__g, _Pp(0, __d)); in __shuffle()
158 …_RandomAccessIterator __first, _RandomAccessIterator __last, _UniformRandomNumberGenerator&& __g) { in shuffle() argument
160 std::move(__first), std::move(__last), std::forward<_UniformRandomNumberGenerator>(__g)); in shuffle()
HDuniform_random_bit_generator_adaptor.h47 _LIBCPP_HIDE_FROM_ABI constexpr explicit _ClassicGenAdaptor(_Gen& __g) : __gen_(__g) {} in _ClassicGenAdaptor() argument
/freebsd-13-stable/contrib/llvm-project/libcxx/include/__random/
HDgamma_distribution.h75 _LIBCPP_HIDE_FROM_ABI result_type operator()(_URNG& __g) { in operator()
76 return (*this)(__g, __p_); in operator()
79 _LIBCPP_HIDE_FROM_ABI result_type operator()(_URNG& __g, const param_type& __p);
101 _RealType gamma_distribution<_RealType>::operator()(_URNG& __g, const param_type& __p) { in operator()
108 __x = __egen(__g); in operator()
113 const result_type __u = __gen(__g); in operator()
114 const result_type __v = __gen(__g); in operator()
131 const result_type __u = __gen(__g); in operator()
132 const result_type __es = __egen(__g); in operator()
HDstudent_t_distribution.h71 _LIBCPP_HIDE_FROM_ABI result_type operator()(_URNG& __g) { in operator()
72 return (*this)(__g, __p_); in operator()
75 _LIBCPP_HIDE_FROM_ABI result_type operator()(_URNG& __g, const param_type& __p);
96 _RealType student_t_distribution<_RealType>::operator()(_URNG& __g, const param_type& __p) { in operator()
99 return __nd_(__g) * std::sqrt(__p.n() / __gd(__g)); in operator()
HDfisher_f_distribution.h72 _LIBCPP_HIDE_FROM_ABI result_type operator()(_URNG& __g) { in operator()
73 return (*this)(__g, __p_); in operator()
76 _LIBCPP_HIDE_FROM_ABI result_type operator()(_URNG& __g, const param_type& __p);
98 _RealType fisher_f_distribution<_RealType>::operator()(_URNG& __g, const param_type& __p) { in operator()
102 return __p.n() * __gdm(__g) / (__p.m() * __gdn(__g)); in operator()
HDbernoulli_distribution.h63 _LIBCPP_HIDE_FROM_ABI result_type operator()(_URNG& __g) { in operator()
64 return (*this)(__g, __p_); in operator()
67 _LIBCPP_HIDE_FROM_ABI result_type operator()(_URNG& __g, const param_type& __p);
87 inline bernoulli_distribution::result_type bernoulli_distribution::operator()(_URNG& __g, const par… in operator()
90 return __gen(__g) < __p.p(); in operator()
HDexponential_distribution.h70 _LIBCPP_HIDE_FROM_ABI result_type operator()(_URNG& __g) { in operator()
71 return (*this)(__g, __p_); in operator()
74 _LIBCPP_HIDE_FROM_ABI result_type operator()(_URNG& __g, const param_type& __p);
97 _RealType exponential_distribution<_RealType>::operator()(_URNG& __g, const param_type& __p) { in operator()
99 …(result_type(1) - std::generate_canonical<result_type, numeric_limits<result_type>::digits>(__g)) / in operator()
HDpoisson_distribution.h82 _LIBCPP_HIDE_FROM_ABI result_type operator()(_URNG& __g) { in operator()
83 return (*this)(__g, __p_); in operator()
86 _LIBCPP_HIDE_FROM_ABI result_type operator()(_URNG& __g, const param_type& __p);
148 double __g = __pr.__mean_ + __pr.__s_ * normal_distribution<double>()(__urng); in operator() local
150 if (__g > 0) { in operator()
151 __tx = std::trunc(__g); in operator()
162 if (__using_exp_dist || __g <= 0) { in operator()
HDgenerate_canonical.h30 _LIBCPP_HIDE_FROM_ABI _RealType generate_canonical(_URNG& __g) { in generate_canonical() argument
41 _RealType __sp = __g() - _URNG::min(); in generate_canonical()
43 __sp += (__g() - _URNG::min()) * __base; in generate_canonical()
HDextreme_value_distribution.h73 _LIBCPP_HIDE_FROM_ABI result_type operator()(_URNG& __g) { in operator()
74 return (*this)(__g, __p_); in operator()
77 _LIBCPP_HIDE_FROM_ABI result_type operator()(_URNG& __g, const param_type& __p);
101 _RealType extreme_value_distribution<_RealType>::operator()(_URNG& __g, const param_type& __p) { in operator()
103 return __p.a() - __p.b() * std::log(-std::log(1 - uniform_real_distribution<result_type>()(__g))); in operator()
HDuniform_real_distribution.h72 _LIBCPP_HIDE_FROM_ABI result_type operator()(_URNG& __g) { in operator()
73 return (*this)(__g, __p_); in operator()
76 _LIBCPP_HIDE_FROM_ABI result_type operator()(_URNG& __g, const param_type& __p);
101 uniform_real_distribution<_RealType>::operator()(_URNG& __g, const param_type& __p) { in operator()
103 … - __p.a()) * std::generate_canonical<_RealType, numeric_limits<_RealType>::digits>(__g) + __p.a(); in operator()
HDcauchy_distribution.h73 _LIBCPP_HIDE_FROM_ABI result_type operator()(_URNG& __g) { in operator()
74 return (*this)(__g, __p_); in operator()
77 _LIBCPP_HIDE_FROM_ABI result_type operator()(_URNG& __g, const param_type& __p);
99 inline _RealType cauchy_distribution<_RealType>::operator()(_URNG& __g, const param_type& __p) { in operator()
103 return __p.a() + __p.b() * std::tan(3.1415926535897932384626433832795 * __gen(__g)); in operator()
HDnormal_distribution.h76 _LIBCPP_HIDE_FROM_ABI result_type operator()(_URNG& __g) { in operator()
77 return (*this)(__g, __p_); in operator()
80 _LIBCPP_HIDE_FROM_ABI result_type operator()(_URNG& __g, const param_type& __p);
110 _RealType normal_distribution<_RealType>::operator()(_URNG& __g, const param_type& __p) { in operator()
122 __u = __uni(__g); in operator()
123 __v = __uni(__g); in operator()
HDchi_squared_distribution.h68 _LIBCPP_HIDE_FROM_ABI result_type operator()(_URNG& __g) { in operator()
69 return (*this)(__g, __p_); in operator()
72 _LIBCPP_HIDE_FROM_ABI result_type operator()(_URNG& __g, const param_type& __p) { in operator()
73 return gamma_distribution<result_type>(__p.n() / 2, 2)(__g); in operator()
HDgeometric_distribution.h67 _LIBCPP_HIDE_FROM_ABI result_type operator()(_URNG& __g) { in operator()
68 return (*this)(__g, __p_); in operator()
71 _LIBCPP_HIDE_FROM_ABI result_type operator()(_URNG& __g, const param_type& __p) { in operator()
72 return negative_binomial_distribution<result_type>(1, __p.p())(__g); in operator()
HDbinomial_distribution.h76 _LIBCPP_HIDE_FROM_ABI result_type operator()(_URNG& __g) { in operator()
77 return (*this)(__g, __p_); in operator()
80 _LIBCPP_HIDE_FROM_ABI result_type operator()(_URNG& __g, const param_type& __p);
128 _IntType binomial_distribution<_IntType>::operator()(_URNG& __g, const param_type& __pr) { in operator()
135 double __u = __gen(__g) - __pr.__pr_; in operator()
HDweibull_distribution.h73 _LIBCPP_HIDE_FROM_ABI result_type operator()(_URNG& __g) { in operator()
74 return (*this)(__g, __p_); in operator()
77 _LIBCPP_HIDE_FROM_ABI result_type operator()(_URNG& __g, const param_type& __p) { in operator()
78 return __p.b() * std::pow(exponential_distribution<result_type>()(__g), 1 / __p.a()); in operator()
HDlognormal_distribution.h71 _LIBCPP_HIDE_FROM_ABI result_type operator()(_URNG& __g) { in operator()
72 return std::exp(__nd_(__g)); in operator()
76 _LIBCPP_HIDE_FROM_ABI result_type operator()(_URNG& __g, const param_type& __p) { in operator()
78 return std::exp(__nd_(__g, __pn)); in operator()
HDuniform_int_distribution.h182 _LIBCPP_HIDE_FROM_ABI result_type operator()(_URNG& __g) { in operator()
183 return (*this)(__g, __p_); in operator()
186 _LIBCPP_HIDE_FROM_ABI result_type operator()(_URNG& __g, const param_type& __p);
211 _URNG& __g, const param_type& __p) _LIBCPP_DISABLE_UBSAN_UNSIGNED_INTEGER_CHECK { in operator()
220 return static_cast<result_type>(_Eng(__g, __dt)()); in operator()
224 _Eng __e(__g, __w); in operator()
HDdiscrete_distribution.h95 _LIBCPP_HIDE_FROM_ABI result_type operator()(_URNG& __g) { in operator()
96 return (*this)(__g, __p_); in operator()
99 _LIBCPP_HIDE_FROM_ABI result_type operator()(_URNG& __g, const param_type& __p);
171 _IntType discrete_distribution<_IntType>::operator()(_URNG& __g, const param_type& __p) { in operator()
174 …return static_cast<_IntType>(std::upper_bound(__p.__p_.begin(), __p.__p_.end(), __gen(__g)) - __p.… in operator()
HDnegative_binomial_distribution.h73 _LIBCPP_HIDE_FROM_ABI result_type operator()(_URNG& __g) { in operator()
74 return (*this)(__g, __p_); in operator()
77 _LIBCPP_HIDE_FROM_ABI result_type operator()(_URNG& __g, const param_type& __p);
HDpiecewise_constant_distribution.h108 _LIBCPP_HIDE_FROM_ABI result_type operator()(_URNG& __g) { in operator()
109 return (*this)(__g, __p_); in operator()
112 _LIBCPP_HIDE_FROM_ABI result_type operator()(_URNG& __g, const param_type& __p);
238 _RealType piecewise_constant_distribution<_RealType>::operator()(_URNG& __g, const param_type& __p)… in operator()
241 result_type __u = _Gen()(__g); in operator()
/freebsd-13-stable/contrib/llvm-project/libcxx/include/experimental/__simd/
HDvec_ext.h69 …static _LIBCPP_HIDE_FROM_ABI _SimdStorage __generate_init(_Generator&& __g, std::index_sequence<_I…
70 return _SimdStorage{{__g(std::integral_constant<size_t, _Is>())...}};
74 static _LIBCPP_HIDE_FROM_ABI _SimdStorage __generate(_Generator&& __g) noexcept {
75 return __generate_init(std::forward<_Generator>(__g), std::make_index_sequence<_Np>());
HDscalar.h57 static _LIBCPP_HIDE_FROM_ABI _SimdStorage __generate(_Generator&& __g) noexcept {
58 return {__g(std::integral_constant<size_t, 0>())};

12