[SciPy-dev] cython in scipy?
Charles R Harris
Sat Oct 11 12:49:36 CDT 2008
On Wed, Oct 8, 2008 at 10:51 PM, Jarrod Millman <email@example.com>wrote:
> On Wed, Oct 8, 2008 at 9:38 PM, Anne Archibald
> <firstname.lastname@example.org> wrote:
> > I've just been trying to clean up scipy.stats.vonmises.cdf: it's
> > currently badly broken (tickets 747, 748, and 749). I can fix the
> > outright bugs, but it also has distressingly large roundoff error
> > under some circumstances. I'd like to simply implement the standard
> > algorithm (Hill 1977) for evaluating it. Unfortunately, it involves
> > evaluating a series with a number of terms that depends on the
> > parameter, so vectorizing a python version (which is already written)
> > is going to be a nuisance. On the other hand, it would be very easy to
> > translate this into cython and get C performance out of it. So: is it
> > okay to include cython code in scipy? What is the best way to go about
> > this? Include the cython source in setup.py somehow? Check the
> > generated C into svn and run cython by hand when I remember to?
> Writing Cython code is fine with me. I think you should check in the
> generated C, though.
It would probably be better to check in both so that the .pyx file could be
used for fixes or a template for other functions.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Scipy-dev