Awesome. Now I can get rid of that lame ad-hoc D2 port of tango.math.gammaFunction in dstats. One small note, though: All those hard coded constant arrays will trigger heap allocations and make performance terrible due to Bug 4298 (<a href="http://d.puremagic.com/issues/show_bug.cgi?id=4298">http://d.puremagic.com/issues/show_bug.cgi?id=4298</a>). <br>
<br>Unless this is getting fixed very soon, it's probably a good idea to stick the workaround in, which is to make the array static if it's declared in a function and to explicitly provide a compile-time size, i.e. immutable real[2] foo = [1.0L, 2.0L] instead of immutable real[] foo = [1.0L, 2.0L].<br>
<br><div class="gmail_quote">On Thu, Nov 18, 2010 at 2:55 PM, <a href="http://dsource.org">dsource.org</a> <span dir="ltr"><<a href="mailto:noreply@dsource.org">noreply@dsource.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
phobos commit, revision 2176<br>
<br>
<br>
user: Don Clugston<br>
<br>
msg:<br>
Added std.mathspecial. Only 14 functions are included at this stage.<br>
<br>
<a href="http://www.dsource.org/projects/phobos/changeset/2176" target="_blank">http://www.dsource.org/projects/phobos/changeset/2176</a><br>
<br>
_______________________________________________<br>
phobos mailing list<br>
<a href="mailto:phobos@puremagic.com">phobos@puremagic.com</a><br>
<a href="http://lists.puremagic.com/mailman/listinfo/phobos" target="_blank">http://lists.puremagic.com/mailman/listinfo/phobos</a><br>
</blockquote></div><br>