1 subroutine zfftmi ( n, wsave, lensav, ier )
3 !*****************************************************************************80
5 !! ZFFTMI: initialization for ZFFTMB and ZFFTMF.
9 ! ZFFTMI initializes array WSAVE for use in its companion routines
10 ! ZFFTMB and ZFFTMF. ZFFTMI must be called before the first call
11 ! to ZFFTMB or ZFFTMF, and after whenever the value of integer N changes.
21 ! Original complex single precision by Paul Swarztrauber, Richard Valent.
22 ! Complex double precision version by John Burkardt.
27 ! Vectorizing the Fast Fourier Transforms,
28 ! in Parallel Computations,
29 ! edited by G. Rodrigue,
30 ! Academic Press, 1982.
33 ! Fast Fourier Transform Algorithms for Vector Computers,
34 ! Parallel Computing, pages 45-63, 1984.
38 ! Input, integer ( kind = 4 ) N, the length of each sequence to be
39 ! transformed. The transform is most efficient when N is a product of
42 ! Input, integer ( kind = 4 ) LENSAV, the dimension of the WSAVE array.
43 ! LENSAV must be at least 2*N + INT(LOG(REAL(N))) + 4.
45 ! Output, real ( kind = 8 ) WSAVE(LENSAV), containing the prime factors
46 ! of N and also containing certain trigonometric values which will be used in
47 ! routines ZFFTMB or ZFFTMF.
49 ! Output, integer ( kind = 4 ) IER, error flag.
51 ! 2, input parameter LENSAV not big enough.
55 integer ( kind = 4 ) lensav
57 integer ( kind = 4 ) ier
58 integer ( kind = 4 ) iw1
59 integer ( kind = 4 ) n
60 real ( kind = 8 ) wsave(lensav)
64 if ( lensav < 2 * n + int ( log ( real ( n, kind = 8 ) ) ) + 4 ) then
66 call xerfft ( 'cfftmi ', 3 )
75 call r8_mcfti1 ( n, wsave, wsave(iw1), wsave(iw1+1) )