naginterfaces.library.sum.fft_complex_2d¶
- naginterfaces.library.sum.fft_complex_2d(direct, m, n, x)[source]¶
fft_complex_2d
computes the two-dimensional discrete Fourier transform of a bivariate sequence of complex data values (using complex data type).For full information please refer to the NAG Library document for c06pu
https://support.nag.com/numeric/nl/nagdoc_30.3/flhtml/c06/c06puf.html
- Parameters
- directstr, length 1
If the forward transform as defined in Notes is to be computed, must be set equal to ‘F’.
If the backward transform is to be computed, must be set equal to ‘B’.
- mint
, the first dimension of the transform.
- nint
, the second dimension of the transform.
- xcomplex, array-like, shape
The complex data values. must contain , for , for .
- Returns
- xcomplex, ndarray, shape
The corresponding elements of the computed transform.
- Raises
- NagValueError
- (errno )
On entry, .
Constraint: .
- (errno )
On entry, .
Constraint: .
- (errno )
On entry, .
Constraint: or .
- (errno )
An internal error has occurred in this function. Check the function call and any array sizes. If the call is correct then please contact NAG for assistance.
- Notes
fft_complex_2d
computes the two-dimensional discrete Fourier transform of a bivariate sequence of complex data values , for , for .The discrete Fourier transform is here defined by
where and .
(Note the scale factor of in this definition.) The minus sign is taken in the argument of the exponential within the summation when the forward transform is required, and the plus sign is taken when the backward transform is required.
A call of
fft_complex_2d
with followed by a call with will restore the original data.This function calls
fft_complex_1d_multi_row()
to perform multiple one-dimensional discrete Fourier transforms by the fast Fourier transform (FFT) algorithm in Brigham (1974).
- References
Brigham, E O, 1974, The Fast Fourier Transform, Prentice–Hall
Temperton, C, 1983, Self-sorting mixed-radix fast Fourier transforms, J. Comput. Phys. (52), 1–23