ZFFT2D
Routine Documentation
ZFFT2D (MODE,M,N,X,COMM,INFO)
|
SUBROUTINE |
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.
|
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.
|
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*16 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*16 COMM(M*N+3*(M+N))
|
Input/Output |
COMM is a communication array used as temporary store.
|
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 ZFFT2D(-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) = DCONJG(X(I,J))
10 CONTINUE
20 CONTINUE
CALL ZFFT2D(1,M,N,X,COMM,INFO)