Node:CFFT2D, Next:, Previous:ZFFT2D, Up:2D FFT



CFFT2D Routine Documentation

CFFT2D (MODE,M,N,X,COMM,INFO) SUBROUTINE
INTEGER MODE Input
The value of MODE on input determines the direction of transform to be performed by ZFFT2D.
On input:
  • MODE=-1 : forward 2D transform is performed.
  • MODE=1 : backward (reverse) 2D transform is performed.

INTEGER M Input
On input: M is the number of rows in the 2D array of data to be transformed. If X is declared as a 2D array then M is the first dimension of X.

INTEGER N Input
On input: N is the number of columns in the 2D array of data to be transformed. If X is declared as a 2D array then M is the second dimension of X.

COMPLEX X(M*N) Input/Output
On input: X contains the M by N complex 2D array to be transformed. Element ij is stored in location i+(j-1)*M of X.
On output: X contains the transformed sequence.

COMPLEX COMM(M*N+5*(M+N)) Input/Output
COMM is a communication array used as temporary store.

INTEGER INFO Output
On output: INFO is an error indicator. On successful exit, INFO contains 0. If INFO = -i on exit, the i-th argument had an illegal value.

     Example:
             CALL CFFT2D(-1,M,N,X,COMM,INFO)
             DO 20 J = 1, N
                DO 10 I = 1, MIN(J-1,M)
                   X(I,J) = 0.5D0*(X(I,J) + X(J,I))
                   X(J,I) = CONJG(X(I,J))
        10      CONTINUE
        20   CONTINUE
             CALL CFFT2D(1,M,N,X,COMM,INFO)