# naginterfaces.library.sum.fft_​complex_​3d¶

naginterfaces.library.sum.fft_complex_3d(direct, n1, n2, n3, x)[source]

fft_complex_3d computes the three-dimensional discrete Fourier transform of a trivariate sequence of complex data values (using complex data type).

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

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

n1int

, the first dimension of the transform.

n2int

, the second dimension of the transform.

n3int

, the third dimension of the transform.

xcomplex, array-like, shape

The complex data values. Data values are stored in using column-major ordering for storing multidimensional arrays; that is, is stored in .

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

(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_3d computes the three-dimensional discrete Fourier transform of a trivariate sequence of complex data values , for , 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_3d with followed by a call with will restore the original data.

This function performs multiple one-dimensional discrete Fourier transforms by the fast Fourier transform (FFT) algorithm (see 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