This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Add uniform_inside_sphere_distribution
- From: Ed Smith-Rowland <3dw4rd at verizon dot net>
- To: libstdc++ at gcc dot gnu dot org
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 05 Nov 2014 18:41:17 -0500
- Subject: Re: Add uniform_inside_sphere_distribution
- Authentication-results: sourceware.org; auth=none
- References: <545A6BD6 dot 5050706 at verizon dot net> <alpine dot DEB dot 2 dot 11 dot 1411052223020 dot 1572 at laptop-mg dot saclay dot inria dot fr>
On 11/05/2014 04:25 PM, Marc Glisse wrote:
On Wed, 5 Nov 2014, Ed Smith-Rowland wrote:
Like the uniform_on_sphere_distribution which is used inside, the
2-dimensional case uses rejection
Could you point out where in the code you are special-casing dimension
2? Somehow I can't see it in the patch.
My miscommunication. Sorry.
The special casing - and all the hard work - is done by the contained
uniform_on_sphere_distribution.
The uniform_inside_sphere_distribution only has one template.
Ed