This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/83237] Values returned by std::poisson_distribution are not distributed correctly


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]