ptypy.core.geometry.FFTchooser#
- class ptypy.core.geometry.FFTchooser(ffttype='scipy')#
Bases:
objectChooses the desired FFT algo, and assigns scaling. If pyFFTW is not available, falls back to scipy.
- __init__(ffttype='scipy')#
- Parameters:
ffttype (str or tuple) –
Type of FFT implementation. One of:
’fftw’ for pyFFTW
’numpy’ for numpy.fft.fft2
’scipy’ for scipy.fft.fft2
2 or 4-tuple of (forward_fft2(), inverse_fft2(), [scaling, inverse_scaling])
Methods
__init__([ffttype])assign_fft()assign_scaling(shape)