SciPy

This is documentation for an old release of SciPy (version 1.5.3). Read this page in the documentation of the latest stable release (version 1.15.1).

scipy.fft.set_workers

scipy.fft.set_workers(workers)

Context manager for the default number of workers used in scipy.fft

Parameters
workersint

The default number of workers to use

Examples

>>>
>>> from scipy import fft, signal
>>> x = np.random.randn(128, 64)
>>> with fft.set_workers(4):
...     y = signal.fftconvolve(x, x)

Previous topic

scipy.fft.next_fast_len

Next topic

scipy.fft.get_workers