https://d.puremagic.com/issues/show_bug.cgi?id=5240
bearophile_h...@eml.cc changed:
What|Removed |Added
Status|ASSIGNED|RESOLVED
Resolution|
/d0727dc7a02a33d855cc141f09f883501077797b
Fix Issue #5240: faster std.random.uniform for [0.0, 1.0) range
Following typical design in other languages, the function is named
uniform01. It can be templated on floating-point type, defaulting
to double if none is specified.
The implementation is pretty much derived from its
http://d.puremagic.com/issues/show_bug.cgi?id=5240
Andrei Alexandrescu changed:
What|Removed |Added
Status|NEW |ASSIGNED
CC|
http://d.puremagic.com/issues/show_bug.cgi?id=5240
--- Comment #6 from bearophile_h...@eml.cc 2010-11-22 12:05:44 PST ---
(In reply to comment #5)
> I was commenting on the suggested name uniform01.
> Templating the function seemed obvious to me and I was also surprised you
> didn't suggest doi
http://d.puremagic.com/issues/show_bug.cgi?id=5240
--- Comment #5 from st...@despam.it 2010-11-22 10:19:33 PST ---
I was commenting on the suggested name uniform01.
Templating the function seemed obvious to me and I was also surprised you
didn't suggest doing that so I thought I was missing some
http://d.puremagic.com/issues/show_bug.cgi?id=5240
--- Comment #4 from bearophile_h...@eml.cc 2010-11-22 09:44:33 PST ---
(In reply to comment #3)
> I am probably missing something, but what is wrong with uniform!(0,1) ?
> Then you can add optimizations for all the special cases you want.
Curre
http://d.puremagic.com/issues/show_bug.cgi?id=5240
st...@despam.it changed:
What|Removed |Added
CC||st...@despam.it
--- Comment #3 from s
http://d.puremagic.com/issues/show_bug.cgi?id=5240
Denis Derman changed:
What|Removed |Added
CC||denis.s...@gmail.com
--- Comment #2 fro
http://d.puremagic.com/issues/show_bug.cgi?id=5240
--- Comment #1 from bearophile_h...@eml.cc 2010-11-19 12:10:42 PST ---
A specialized overload/function like this is useful in Phobos even if it's not
faster.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
---