ezffti.f 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. *DECK EZFFTI
  2. SUBROUTINE EZFFTI (N, WSAVE)
  3. C***BEGIN PROLOGUE EZFFTI
  4. C***PURPOSE Initialize a work array for EZFFTF and EZFFTB.
  5. C***LIBRARY SLATEC (FFTPACK)
  6. C***CATEGORY J1A1
  7. C***TYPE SINGLE PRECISION (EZFFTI-S)
  8. C***KEYWORDS FFTPACK, FOURIER TRANSFORM
  9. C***AUTHOR Swarztrauber, P. N., (NCAR)
  10. C***DESCRIPTION
  11. C
  12. C Subroutine EZFFTI initializes the work array WSAVE which is used in
  13. C both EZFFTF and EZFFTB. The prime factorization of N together with
  14. C a tabulation of the trigonometric functions are computed and
  15. C stored in WSAVE.
  16. C
  17. C Input Parameter
  18. C
  19. C N the length of the sequence to be transformed.
  20. C
  21. C Output Parameter
  22. C
  23. C WSAVE a work array which must be dimensioned at least 3*N+15.
  24. C The same work array can be used for both EZFFTF and EZFFTB
  25. C as long as N remains unchanged. Different WSAVE arrays
  26. C are required for different values of N.
  27. C
  28. C***REFERENCES P. N. Swarztrauber, Vectorizing the FFTs, in Parallel
  29. C Computations (G. Rodrigue, ed.), Academic Press,
  30. C 1982, pp. 51-83.
  31. C***ROUTINES CALLED EZFFT1
  32. C***REVISION HISTORY (YYMMDD)
  33. C 790601 DATE WRITTEN
  34. C 830401 Modified to use SLATEC library source file format.
  35. C 860115 Modified by Ron Boisvert to adhere to Fortran 77 by
  36. C changing dummy array size declarations (1) to (*).
  37. C 861211 REVISION DATE from Version 3.2
  38. C 881128 Modified by Dick Valent to meet prologue standards.
  39. C 891214 Prologue converted to Version 4.0 format. (BAB)
  40. C 920501 Reformatted the REFERENCES section. (WRB)
  41. C***END PROLOGUE EZFFTI
  42. DIMENSION WSAVE(*)
  43. C***FIRST EXECUTABLE STATEMENT EZFFTI
  44. IF (N .EQ. 1) RETURN
  45. CALL EZFFT1 (N,WSAVE(2*N+1),WSAVE(3*N+1))
  46. RETURN
  47. END