naginterfaces.library.sum.fft_​real_​3d

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

fft_real_3d computes the three-dimensional discrete Fourier transform of a trivariate sequence of real data values.

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

https://support.nag.com/numeric/nl/nagdoc_30.3/flhtml/c06/c06pyf.html

Parameters
n1int

, the first dimension of the transform.

n2int

, the second dimension of the transform.

n3int

, the third dimension of the transform.

xfloat, array-like, shape

The real input dataset , where is stored in , for , for , for .

Returns
ycomplex, ndarray, shape

The complex output dataset , where is stored in , for , for , for . Note the first dimension is cut roughly by half to remove the redundant information due to conjugate symmetry.

Raises
NagValueError
(errno )

On entry, .

Constraint: .

(errno )

On entry, .

Constraint: .

(errno )

On entry, .

Constraint: .

(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_real_3d computes the three-dimensional discrete Fourier transform of a trivariate sequence of real data values , for , for , for .

The discrete Fourier transform is here defined by

where , and . (Note the scale factor of in this definition.)

The transformed values are complex. Because of conjugate symmetry (i.e., is the complex conjugate of ), only slightly more than half of the Fourier coefficients need to be stored in the output.

A call of fft_real_3d followed by a call of fft_hermitian_3d() will restore the original data.

This function calls fft_realherm_1d_multi_col() and fft_complex_1d_multi_row() to perform multiple one-dimensional discrete Fourier transforms by the fast Fourier transform (FFT) algorithm in Brigham (1974) and Temperton (1983).

References

Brigham, E O, 1974, The Fast Fourier Transform, Prentice–Hall

Temperton, C, 1983, Fast mixed-radix real Fourier transforms, J. Comput. Phys. (52), 340–350