Caution

You're reading the documentation for a development version. For the latest released version, please have a look at 0.10.2.

librosa.set_fftlib

librosa.set_fftlib(lib=None)[source]

Set the FFT library used by librosa.

Parameters:
libNone or module

Must implement an interface compatible with numpy.fft. If None, reverts to numpy.fft.

Examples

Use pyfftw:

>>> import pyfftw
>>> librosa.set_fftlib(pyfftw.interfaces.numpy_fft)

Reset to default numpy implementation

>>> librosa.set_fftlib()