This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix Bug 83237 - Values returned by std::poisson_distribution are not distributed correctly
- From: Paolo Carlini <paolo dot carlini at oracle dot com>
- To: Michele Pezzutti <mpezz at tiscali dot it>, libstdc++ <libstdc++ at gcc dot gnu dot org>, gcc-patches at gcc dot gnu dot org, libstdc++ at gcc dot gnu dot org
- Date: Mon, 11 Dec 2017 10:52:34 +0100
- Subject: Re: [PATCH] Fix Bug 83237 - Values returned by std::poisson_distribution are not distributed correctly
- Authentication-results: sourceware.org; auth=none
- References: <996b2c2c-45e7-b434-e5d9-4441d2273829@tiscali.it>
Hi,
On 10/12/2017 14:47, Michele Pezzutti wrote:
Hi.
This patch intends to fix Bug 83237 - Values returned by
std::poisson_distribution are not distributed correctly.
See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83237for issue
description and tests.
In any case, the fix should come with a testcase, which would also
validate the analysis. For this discrete distribution should be pretty
easy to add one, because all the infrastructure is already in place,
essentially three lines added to
26_numerics/random/poisson_distribution/operators/values.cc.
Paolo.