sinqi.f 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. *DECK SINQI
  2. SUBROUTINE SINQI (N, WSAVE)
  3. C***BEGIN PROLOGUE SINQI
  4. C***PURPOSE Initialize a work array for SINQF and SINQB.
  5. C***LIBRARY SLATEC (FFTPACK)
  6. C***CATEGORY J1A3
  7. C***TYPE SINGLE PRECISION (SINQI-S)
  8. C***KEYWORDS FFTPACK, FOURIER TRANSFORM
  9. C***AUTHOR Swarztrauber, P. N., (NCAR)
  10. C***DESCRIPTION
  11. C
  12. C Subroutine SINQI initializes the array WSAVE which is used in
  13. C both SINQF and SINQB. 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. The method
  20. C is most efficient when N is a product of small primes.
  21. C
  22. C Output Parameter
  23. C
  24. C WSAVE a work array which must be dimensioned at least 3*N+15.
  25. C The same work array can be used for both SINQF and SINQB
  26. C as long as N remains unchanged. Different WSAVE arrays
  27. C are required for different values of N. The contents of
  28. C WSAVE must not be changed between calls of SINQF or SINQB.
  29. C
  30. C***REFERENCES P. N. Swarztrauber, Vectorizing the FFTs, in Parallel
  31. C Computations (G. Rodrigue, ed.), Academic Press,
  32. C 1982, pp. 51-83.
  33. C***ROUTINES CALLED COSQI
  34. C***REVISION HISTORY (YYMMDD)
  35. C 790601 DATE WRITTEN
  36. C 830401 Modified to use SLATEC library source file format.
  37. C 860115 Modified by Ron Boisvert to adhere to Fortran 77 by
  38. C changing dummy array size declarations (1) to (*)
  39. C 861211 REVISION DATE from Version 3.2
  40. C 881128 Modified by Dick Valent to meet prologue standards.
  41. C 891214 Prologue converted to Version 4.0 format. (BAB)
  42. C 920501 Reformatted the REFERENCES section. (WRB)
  43. C***END PROLOGUE SINQI
  44. DIMENSION WSAVE(*)
  45. C***FIRST EXECUTABLE STATEMENT SINQI
  46. CALL COSQI (N,WSAVE)
  47. RETURN
  48. END