Trees | Indices | Help |
|
---|
|
object --+ | Plan
Object representing a fftw plan used to execute Fourier transforms in fftw Attributes: shape -- the shape of the input and output arrays, i.e. the FFT flags -- a list of the fft flags used in the planning direction -- the direction of the FFT ndim -- the dimensionality of the FFT inarray -- the input array outarray -- the output array
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
shape | |||
_as_parameter_ | |||
Inherited from |
|
Initialize the fftw plan. Parameters: inarray -- array to be transformed (default=None) outarray -- array to contain the Fourier transform (default=None) If one of the arrays is None, the fft is considered to be an inplace transform. direction -- direction of the Fourier transform, forward or backward (default='forward') flags -- list of fftw-flags to be used in planning (default=['estimate']) realtypes -- list of fft-types for real-to-real ffts, this needs to be given if both input and output arrays are real (default=None) create_plan -- weather to actually create the plan (default=True) nthreads -- number of threads to be used by the plan, available only for threaded libraries (default=1)
|
Execute the fftw plan, i.e. perform the FFT outarray = fft(inarray) for the arrays given at plan creation |
Guru interface: perform Fourier transform on two given arrays, outarray=fft(inarray). Important: This method does not perform any checks on the array shape and alignment for performance reasons. It is therefore crucial to only provide arrays with the same shape, dtype and alignment as the arrays used for planning, failure to do so can lead to unexpected behaviour and possibly python segfaulting |
Return an exact count of the number of floating-point additions, multiplications, and fused multiply-add operations involved in the plan's execution. The total number of floating-point operations (flops) is add + mul + 2*fma, or add + mul + fma if the hardware supports fused multiply-add instructions (although the number of FMA operations is only approximate because of compiler voodoo). |
|
shape
|
_as_parameter_
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Fri Jun 20 03:53:30 2014 | http://epydoc.sourceforge.net |