mirror of
https://gcc.gnu.org/git/gcc.git
synced 2025-01-15 16:24:09 +08:00
* include/ext/random.tcc (__gnu_cxx:normal_mv_distribution<>)
(operator()): Use __generate() function of _M_nd. From-SVN: r190975
This commit is contained in:
parent
22854930b9
commit
ff99de9860
@ -1,5 +1,8 @@
|
||||
2012-09-05 Ulrich Drepper <drepper@gmail.com>
|
||||
|
||||
* include/ext/random.tcc (__gnu_cxx:normal_mv_distribution<>)
|
||||
(operator()): Use __generate() function of _M_nd.
|
||||
|
||||
* include/ext/random: Add __gnu_cxx:normal_mv_distribution<> class.
|
||||
* include/ext/random.tccAdd out-of-line functions for
|
||||
__gnu_cxx::normal_mv_distribution<>.
|
||||
|
@ -653,8 +653,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
|
||||
{
|
||||
result_type __ret;
|
||||
|
||||
for (size_t __i = 0; __i < _Dimen; ++__i)
|
||||
__ret[__i] = _M_nd(__urng);
|
||||
_M_nd.__generate(__ret.begin(), __ret.end(), __urng);
|
||||
|
||||
auto __t_it = __param._M_t.crbegin();
|
||||
for (size_t __i = _Dimen; __i > 0; --__i)
|
||||
|
Loading…
Reference in New Issue
Block a user