bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / fft / _duccfft / helper / set_workers
function
scipy.fft._duccfft.helper:set_workers
source: build-install/usr/lib/python3.14/site-packages/scipy/fft/_duccfft/helper.py:211
Signature
def set_workers(workers)Summary
Context manager for the default number of workers used in scipy.fft.
Parameters
workers: intThe default number of workers to use
Notes
Array API Standard Support
set_workers is not in-scope for support of Python Array API Standard compatible backends other than NumPy.
See dev-arrayapi for more information.
Examples
import numpy as np from scipy import fft, signal rng = np.random.default_rng() x = rng.standard_normal((128, 64)) with fft.set_workers(4): y = signal.fftconvolve(x, x)✓
Aliases
scipy.fft.set_workers