Skip to content

Provide an interface for scipy.fft #42

Closed
@peterbell10

Description

@peterbell10

The upcomping SciPy 1.4.0 release will include a new subpackage scipy.fft that supercedes scipy.fftpack. This new interface matches the behaviour of numpy.fft closely including real to complex rffts but is different in a few ways (e.g. dtype casting).

This interface also includes a new backend mechanism (scipy/scipy#10383) that would allow mkl_fft to implement the scipy.fft interface without any monkey patching. e.g. from pyFFTW/pyFFTW#269:

import scipy.fft
scipy.fft.fft([1])  # Calls scipy's own implementation

from pyfftw.interfaces import scipy_fft
scipy.fft.set_global_backend(scipy_fft)
scipy.fft.fft([1])  # Calls into pyfftw

See scipy_fft.py for what needs to be done on the mkl_fft side to support this.

It's also unfortunate that the name mkl_fft._scipy_fft is already taken. Any ideas on how to move forward with this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions