naginterfaces.library.sum.fft_complex_1d_multi_row(direct, m, n, x)[source]

fft_complex_1d_multi_row computes the discrete Fourier transforms of sequences, each containing complex data values.

For full information please refer to the NAG Library document for c06pr

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’.


, the number of sequences to be transformed.


, the number of complex values in each sequence.

xcomplex, array-like, shape

The complex data must be stored in as if in a two-dimensional array of dimension ; each of the sequences is stored in a row of each array. In other words, if the elements of the th sequence to be transformed are denoted by , for , must contain .

xcomplex, ndarray, shape

Is overwritten by the complex transforms.

(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.


No equivalent traditional C interface for this routine exists in the NAG Library.

Given sequences of complex data values , for , for , fft_complex_1d_multi_row simultaneously calculates the (forward or backward) discrete Fourier transforms of all the sequences defined by

(Note the scale factor 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_1d_multi_row with followed by a call with will restore the original data.

The function uses a variant of the fast Fourier transform (FFT) algorithm (see Brigham (1974)) known as the Stockham self-sorting algorithm, which is described in Temperton (1983). Special code is provided for the factors , , and .


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