This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/83237] Values returned by std::poisson_distribution are not distributed correctly
- From: "paolo at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 24 Dec 2017 22:09:23 +0000
- Subject: [Bug libstdc++/83237] Values returned by std::poisson_distribution are not distributed correctly
- Auto-submitted: auto-generated
- References: <bug-83237-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83237
--- Comment #5 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Sun Dec 24 22:08:52 2017
New Revision: 255993
URL: https://gcc.gnu.org/viewcvs?rev=255993&root=gcc&view=rev
Log:
2017-12-24 Michele Pezzutti <mpezz@tiscali.it>
PR libstdc++/83237
* include/bits/random.tcc (poisson_distribution<>::operator()):
Fix __x = 1 case - see updated Errata of Devroye's treatise.
* testsuite/26_numerics/random/poisson_distribution/operators/
values.cc: Add test.
* testsuite/26_numerics/random/pr60037-neg.cc: Adjust dg-error
line number.
Modified:
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/include/bits/random.tcc
trunk/libstdc++-v3/testsuite/26_numerics/random/poisson_distribution/operators/values.cc
trunk/libstdc++-v3/testsuite/26_numerics/random/pr60037-neg.cc