[SciPy-Dev] [Cython] [Scipy-Dev] FFT from Cython

Ilhan Polat ilhanpolat at gmail.com
Mon Jul 30 12:04:44 EDT 2018


What you can do is, since you are using Cython already, to replicate the
signatures in DIPY similar to LAPACK functions in SciPy. You can copy the
machinery, say from,

https://github.com/scipy/scipy/blob/master/scipy/linalg/_cython_signature_generator.py

and include FFT related funcs. That's unless someone sends a PR that does
this on SciPy directly.


Best,
ilhan


On Mon, Jul 30, 2018 at 3:17 AM, Eleftherios Garyfallidis <
garyfallidis at gmail.com> wrote:

> Hello all,
>
> For a project in DIPY (http://dipy.org) we need to be calling 1D and 2D
> FFTs and iFFTs very often. For this reason the most efficient way seems to
> be through Cython.
>
> It would be great if we could call scipy's fft or numpy's fft without the
> overhead. I would like to ask if someone has worked on this and can share
> some of hers/his experience or code.
>
> What we are trying to do is avoid increasing our dependencies. For example
> we prefer not using FFTW if this is not available in scipy/numpy.
>
> Finally, many thanks to scipy devs and cython devs for making available
> BLAS and LAPACK functions from Cython. This has been super useful for our
> project. I hope we can do something similar for FFT.
>
> Let me know if you have any ideas. Can we for example access the FFT
> functions of scipy directly from Cython. Has someone done this?
>
> Best regards,
> Eleftherios
>
>
>
>
> _______________________________________________
> SciPy-Dev mailing list
> SciPy-Dev at python.org
> https://mail.python.org/mailman/listinfo/scipy-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scipy-dev/attachments/20180730/0050159f/attachment.html>


More information about the SciPy-Dev mailing list