1 subroutine d1f3kb ( ido, l1, cc, in1, ch, in2, wa1, wa2 )
3 !*****************************************************************************80
5 !! D1F3KB is an FFTPACK5 auxiliary routine.
15 ! Original real single precision by Paul Swarztrauber, Richard Valent.
16 ! Real double precision version by John Burkardt.
21 ! Vectorizing the Fast Fourier Transforms,
22 ! in Parallel Computations,
23 ! edited by G. Rodrigue,
24 ! Academic Press, 1982.
27 ! Fast Fourier Transform Algorithms for Vector Computers,
28 ! Parallel Computing, pages 45-63, 1984.
34 integer ( kind = 4 ) ido
35 integer ( kind = 4 ) in1
36 integer ( kind = 4 ) in2
37 integer ( kind = 4 ) l1
40 real ( kind = 8 ) cc(in1,ido,3,l1)
41 real ( kind = 8 ) ch(in2,ido,l1,3)
42 integer ( kind = 4 ) i
43 integer ( kind = 4 ) ic
44 integer ( kind = 4 ) idp2
45 integer ( kind = 4 ) k
46 real ( kind = 8 ) taui
47 real ( kind = 8 ) taur
48 real ( kind = 8 ) wa1(ido)
49 real ( kind = 8 ) wa2(ido)
51 arg = 2.0D+00 * 4.0D+00 * atan ( 1.0D+00 ) / 3.0D+00
56 ch(1,1,k,1) = cc(1,1,1,k) + 2.0D+00 * cc(1,ido,2,k)
57 ch(1,1,k,2) = cc(1,1,1,k) + 2.0D+00 * taur * cc(1,ido,2,k) &
58 - 2.0D+00 * taui * cc(1,1,3,k)
59 ch(1,1,k,3) = cc(1,1,1,k) + 2.0D+00 * taur * cc(1,ido,2,k) &
60 + 2.0D+00 * taui * cc(1,1,3,k)
72 ch(1,i-1,k,1) = cc(1,i-1,1,k)+(cc(1,i-1,3,k)+cc(1,ic-1,2,k))
73 ch(1,i,k,1) = cc(1,i,1,k)+(cc(1,i,3,k)-cc(1,ic,2,k))
74 ch(1,i-1,k,2) = wa1(i-2)* &
75 ((cc(1,i-1,1,k)+taur*(cc(1,i-1,3,k)+cc(1,ic-1,2,k)))- &
76 (taui*(cc(1,i,3,k)+cc(1,ic,2,k)))) -wa1(i-1)* &
77 ((cc(1,i,1,k)+taur*(cc(1,i,3,k)-cc(1,ic,2,k)))+ &
78 (taui*(cc(1,i-1,3,k)-cc(1,ic-1,2,k))))
79 ch(1,i,k,2) = wa1(i-2)* &
80 ((cc(1,i,1,k)+taur*(cc(1,i,3,k)-cc(1,ic,2,k)))+ &
81 (taui*(cc(1,i-1,3,k)-cc(1,ic-1,2,k)))) +wa1(i-1)* &
82 ((cc(1,i-1,1,k)+taur*(cc(1,i-1,3,k)+cc(1,ic-1,2,k)))- &
83 (taui*(cc(1,i,3,k)+cc(1,ic,2,k))))
84 ch(1,i-1,k,3) = wa2(i-2)* &
85 ((cc(1,i-1,1,k)+taur*(cc(1,i-1,3,k)+cc(1,ic-1,2,k)))+ &
86 (taui*(cc(1,i,3,k)+cc(1,ic,2,k)))) -wa2(i-1)* &
87 ((cc(1,i,1,k)+taur*(cc(1,i,3,k)-cc(1,ic,2,k)))- &
88 (taui*(cc(1,i-1,3,k)-cc(1,ic-1,2,k))))
89 ch(1,i,k,3) = wa2(i-2)* &
90 ((cc(1,i,1,k)+taur*(cc(1,i,3,k)-cc(1,ic,2,k)))- &
91 (taui*(cc(1,i-1,3,k)-cc(1,ic-1,2,k)))) +wa2(i-1)* &
92 ((cc(1,i-1,1,k)+taur*(cc(1,i-1,3,k)+cc(1,ic-1,2,k)))+ &
93 (taui*(cc(1,i,3,k)+cc(1,ic,2,k))))