http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48114
--- Comment #20 from Andrey Zholos 2011-03-16
22:43:45 UTC ---
Good idea. The testcases should be adapted to the code paths in the GCC
generators though: for instance, binomial with p > .5 isn't covered there.
And BINS should be increased: for in
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48114
--- Comment #12 from Andrey Zholos 2011-03-14
18:07:22 UTC ---
The double __p also fixes an infinite (maybe) loop in both
binomial_distribution(100, .75) and binomial_distribution(100, .25)
when _GLIBCXX_USE_C99_MATH_TR1 is defined.
I guess th
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48114
--- Comment #8 from Andrey Zholos 2011-03-14 17:34:01
UTC ---
Ah, yes, I only looked at the C++0x formulas.
By the way, testcases for these don't need to sample probabilities.
They can just check, say, the first 100 values drawn using a
determin
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48114
--- Comment #4 from Andrey Zholos 2011-03-14 15:25:14
UTC ---
Created attachment 23652
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23652
Probability table for geometric_distribution.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48114
--- Comment #3 from Andrey Zholos 2011-03-14 15:23:25
UTC ---
I'll add this here since it's in the same place and the test will be
similar.
For geometric_distribution(.25) the first 10 probabilities are:
sample correct
p_0 0.000
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48114
Summary: binomial_distribution incorrect for p > .5
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
AssignedTo: un
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43281
Andrey Zholos changed:
What|Removed |Added
CC||aaz at althenia dot net
--- Comment #5
--- Comment #2 from aaz at althenia dot net 2009-12-10 00:07 ---
To be more specific, it happens only with
-O -fipa-sra -finline-small-functions -g
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42336
n decltype
argument in template function
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: aaz at althenia do
--- Comment #4 from aaz at althenia dot net 2009-07-04 12:54 ---
It works. Thanks!
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40619
ctions
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: aaz at althenia dot net
GCC build triplet: x86_64-portbld-freebsd7.2
11 matches
Mail list logo