Commit ff99de98 by Ulrich Drepper Committed by Ulrich Drepper

* include/ext/random.tcc (__gnu_cxx:normal_mv_distribution<>)

	(operator()): Use __generate() function of _M_nd.

From-SVN: r190975
parent 22854930
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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment