# naginterfaces.library.sum.fft_​complex_​1d_​multi_​col¶

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

fft_complex_1d_multi_col computes the discrete Fourier transforms of sequences, stored as columns of an array, each containing complex data values.

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

https://www.nag.com/numeric/nl/nagdoc_27.3/flhtml/c06/c06psf.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’.

nint

, the number of complex values in each sequence.

mint

, the number of sequences to be transformed.

xcomplex, array-like, shape

The complex data values stored in , for , for .

Returns
xcomplex, ndarray, shape

Is overwritten by the complex transforms.

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

Given sequences of complex data values , for , for , fft_complex_1d_multi_col 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_col 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 .

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