Home
last modified time | relevance | path

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

12

/llvm-project-15.0.7/libcxx/include/__algorithm/
H A Dsample.h38 _UniformRandomNumberGenerator& __g, in __sample() argument
46 _Distance __r = uniform_int_distribution<_Distance>(0, __k)(__g); in __sample()
60 _UniformRandomNumberGenerator& __g, in __sample() argument
64 _Distance __r = uniform_int_distribution<_Distance>(0, --__unsampled_sz)(__g); in __sample()
79 _Distance __n, _UniformRandomNumberGenerator& __g) { in __sample() argument
88 __g, _PopIterCategory()); in __sample()
97 _Distance __n, _UniformRandomNumberGenerator&& __g) { in sample() argument
103 std::move(__first), std::move(__last), std::move(__output_iter), __n, __g); in sample()
H A Dshuffle.h106 __rs_default __g = __rs_get(); in random_shuffle() local
109 difference_type __i = __uid(__g, _Pp(0, __d)); in random_shuffle()
141 _RandomAccessIterator __first, _Sentinel __last_sentinel, _UniformRandomNumberGenerator&& __g) { in __shuffle() argument
154 difference_type __i = __uid(__g, _Pp(0, __d)); in __shuffle()
165 _UniformRandomNumberGenerator&& __g) { in shuffle() argument
167 std::move(__first), std::move(__last), std::forward<_UniformRandomNumberGenerator>(__g)); in shuffle()
H A Duniform_random_bit_generator_adaptor.h50 constexpr explicit _ClassicGenAdaptor(_Gen& __g) : __gen(__g) {} in _ClassicGenAdaptor() argument
H A Drotate.h120 const difference_type __g = _VSTD::__algo_gcd(__m1, __m2); in __rotate_gcd() local
121 for (_RandomAccessIterator __p = __first + __g; __p != __first;) in __rotate_gcd()
/llvm-project-15.0.7/libcxx/include/__random/
H A Dgamma_distribution.h86 result_type operator()(_URNG& __g) in operator()
87 {return (*this)(__g, __p_);} in operator()
88 template<class _URNG> result_type operator()(_URNG& __g, const param_type& __p);
119 gamma_distribution<_RealType>::operator()(_URNG& __g, const param_type& __p) in operator()
127 __x = __egen(__g); in operator()
134 const result_type __u = __gen(__g); in operator()
135 const result_type __v = __gen(__g); in operator()
157 const result_type __u = __gen(__g); in operator()
158 const result_type __es = __egen(__g); in operator()
H A Dstudent_t_distribution.h82 result_type operator()(_URNG& __g) in operator()
83 {return (*this)(__g, __p_);} in operator()
84 template<class _URNG> result_type operator()(_URNG& __g, const param_type& __p);
113 student_t_distribution<_RealType>::operator()(_URNG& __g, const param_type& __p) in operator()
117 return __nd_(__g) * _VSTD::sqrt(__p.n()/__gd(__g)); in operator()
H A Dfisher_f_distribution.h83 result_type operator()(_URNG& __g) in operator()
84 {return (*this)(__g, __p_);} in operator()
85 template<class _URNG> result_type operator()(_URNG& __g, const param_type& __p);
116 fisher_f_distribution<_RealType>::operator()(_URNG& __g, const param_type& __p) in operator()
121 return __p.n() * __gdm(__g) / (__p.m() * __gdn(__g)); in operator()
H A Dlognormal_distribution.h98 result_type operator()(_URNG& __g) in operator()
99 {return (*this)(__g, __p_);} in operator()
102 result_type operator()(_URNG& __g, const param_type& __p) in operator()
103 {return _VSTD::exp(const_cast<normal_distribution<result_type>&>(__p.__nd_)(__g));} in operator()
220 result_type operator()(_URNG& __g)
222 return _VSTD::exp(__nd_(__g));
227 result_type operator()(_URNG& __g, const param_type& __p)
230 return _VSTD::exp(__nd_(__g, __pn));
H A Dbernoulli_distribution.h74 result_type operator()(_URNG& __g) in operator()
75 {return (*this)(__g, __p_);} in operator()
76 …template<class _URNG> _LIBCPP_INLINE_VISIBILITY result_type operator()(_URNG& __g, const param_typ…
105 bernoulli_distribution::operator()(_URNG& __g, const param_type& __p) in operator()
109 return __gen(__g) < __p.p(); in operator()
H A Dexponential_distribution.h80 result_type operator()(_URNG& __g) in operator()
81 {return (*this)(__g, __p_);} in operator()
82 template<class _URNG> result_type operator()(_URNG& __g, const param_type& __p);
111 exponential_distribution<_RealType>::operator()(_URNG& __g, const param_type& __p) in operator()
118 numeric_limits<result_type>::digits>(__g) in operator()
H A Dpoisson_distribution.h94 result_type operator()(_URNG& __g) in operator()
95 {return (*this)(__g, __p_);} in operator()
96 template<class _URNG> result_type operator()(_URNG& __g, const param_type& __p);
174 double __g = __pr.__mean_ + __pr.__s_ * normal_distribution<double>()(__urng); in operator() local
176 if (__g > 0) in operator()
178 __tx = _VSTD::trunc(__g); in operator()
190 if (__using_exp_dist || __g <= 0) in operator()
H A Dnormal_distribution.h87 result_type operator()(_URNG& __g) in operator()
88 {return (*this)(__g, __p_);} in operator()
89 template<class _URNG> result_type operator()(_URNG& __g, const param_type& __p);
133 normal_distribution<_RealType>::operator()(_URNG& __g, const param_type& __p) in operator()
150 __u = _Uni(__g); in operator()
151 __v = _Uni(__g); in operator()
H A Dgenerate_canonical.h31 generate_canonical(_URNG& __g) in generate_canonical() argument
43 _RealType _Sp = __g() - _URNG::min(); in generate_canonical()
45 _Sp += (__g() - _URNG::min()) * __base; in generate_canonical()
H A Duniform_real_distribution.h83 result_type operator()(_URNG& __g) in operator()
84 {return (*this)(__g, __p_);} in operator()
85 …template<class _URNG> _LIBCPP_INLINE_VISIBILITY result_type operator()(_URNG& __g, const param_typ…
117 uniform_real_distribution<_RealType>::operator()(_URNG& __g, const param_type& __p) in operator()
121 * _VSTD::generate_canonical<_RealType, numeric_limits<_RealType>::digits>(__g) in operator()
H A Dcauchy_distribution.h84 result_type operator()(_URNG& __g) in operator()
85 {return (*this)(__g, __p_);} in operator()
86 …template<class _URNG> _LIBCPP_INLINE_VISIBILITY result_type operator()(_URNG& __g, const param_typ…
118 cauchy_distribution<_RealType>::operator()(_URNG& __g, const param_type& __p) in operator()
123 return __p.a() + __p.b() * _VSTD::tan(3.1415926535897932384626433832795 * __gen(__g)); in operator()
H A Dextreme_value_distribution.h85 result_type operator()(_URNG& __g) in operator()
86 {return (*this)(__g, __p_);} in operator()
87 template<class _URNG> result_type operator()(_URNG& __g, const param_type& __p);
118 extreme_value_distribution<_RealType>::operator()(_URNG& __g, const param_type& __p) in operator()
122 _VSTD::log(-_VSTD::log(1-uniform_real_distribution<result_type>()(__g))); in operator()
H A Dgeometric_distribution.h79 result_type operator()(_URNG& __g) in operator()
80 {return (*this)(__g, __p_);} in operator()
83 result_type operator()(_URNG& __g, const param_type& __p) in operator()
84 {return negative_binomial_distribution<result_type>(1, __p.p())(__g);} in operator()
H A Dchi_squared_distribution.h78 result_type operator()(_URNG& __g) in operator()
79 {return (*this)(__g, __p_);} in operator()
82 result_type operator()(_URNG& __g, const param_type& __p) in operator()
83 {return gamma_distribution<result_type>(__p.n() / 2, 2)(__g);} in operator()
H A Dbinomial_distribution.h86 result_type operator()(_URNG& __g) in operator()
87 {return (*this)(__g, __p_);} in operator()
88 template<class _URNG> result_type operator()(_URNG& __g, const param_type& __p);
149 binomial_distribution<_IntType>::operator()(_URNG& __g, const param_type& __pr) in operator()
157 double __u = __gen(__g) - __pr.__pr_; in operator()
H A Dweibull_distribution.h83 result_type operator()(_URNG& __g) in operator()
84 {return (*this)(__g, __p_);} in operator()
87 result_type operator()(_URNG& __g, const param_type& __p) in operator()
89 _VSTD::pow(exponential_distribution<result_type>()(__g), 1/__p.a());} in operator()
H A Duniform_int_distribution.h207 template<class _URNG> result_type operator()(_URNG& __g) in operator()
208 {return (*this)(__g, __p_);} in operator()
209 template<class _URNG> result_type operator()(_URNG& __g, const param_type& __p);
232 uniform_int_distribution<_IntType>::operator()(_URNG& __g, const param_type& __p) in operator()
244 return static_cast<result_type>(_Eng(__g, _Dt)()); in operator()
248 _Eng __e(__g, __w); in operator()
H A Ddiscrete_distribution.h116 result_type operator()(_URNG& __g) in operator()
117 {return (*this)(__g, __p_);} in operator()
118 template<class _URNG> result_type operator()(_URNG& __g, const param_type& __p);
214 discrete_distribution<_IntType>::operator()(_URNG& __g, const param_type& __p) in operator()
219 _VSTD::upper_bound(__p.__p_.begin(), __p.__p_.end(), __gen(__g)) - in operator()
H A Dnegative_binomial_distribution.h86 result_type operator()(_URNG& __g) in operator()
87 {return (*this)(__g, __p_);} in operator()
88 template<class _URNG> result_type operator()(_URNG& __g, const param_type& __p);
H A Dpiecewise_constant_distribution.h126 result_type operator()(_URNG& __g) in operator()
127 {return (*this)(__g, __p_);} in operator()
128 template<class _URNG> result_type operator()(_URNG& __g, const param_type& __p);
286 piecewise_constant_distribution<_RealType>::operator()(_URNG& __g, const param_type& __p) in operator()
290 result_type __u = _Gen()(__g); in operator()
H A Dpiecewise_linear_distribution.h126 result_type operator()(_URNG& __g) in operator()
127 {return (*this)(__g, __p_);} in operator()
128 template<class _URNG> result_type operator()(_URNG& __g, const param_type& __p);
291 piecewise_linear_distribution<_RealType>::operator()(_URNG& __g, const param_type& __p) in operator()
295 result_type __u = _Gen()(__g); in operator()

12