1 CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
5 C Authors: Paul N. Swarztrauber and Richard A. Valent
9 CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
11 SUBROUTINE C1F5KB
(IDO
,L1
,NA
,CC
,IN1
,CH
,IN2
,WA
)
12 REAL CC
(IN1
,L1
,IDO
,5),CH
(IN2
,L1
,5,IDO
),WA
(IDO
,4,2)
13 DATA TR11
,TI11
,TR12
,TI12
/.3090169943749474,.9510565162951536,
14 1-.8090169943749474,.5877852522924731/
16 C FFTPACK 5.0 auxiliary routine
18 IF (IDO
.GT
.1 .OR
. NA
.EQ
.1) GO TO 102
20 TI5
= CC
(2,K
,1,2)-CC
(2,K
,1,5)
21 TI2
= CC
(2,K
,1,2)+CC
(2,K
,1,5)
22 TI4
= CC
(2,K
,1,3)-CC
(2,K
,1,4)
23 TI3
= CC
(2,K
,1,3)+CC
(2,K
,1,4)
24 TR5
= CC
(1,K
,1,2)-CC
(1,K
,1,5)
25 TR2
= CC
(1,K
,1,2)+CC
(1,K
,1,5)
26 TR4
= CC
(1,K
,1,3)-CC
(1,K
,1,4)
27 TR3
= CC
(1,K
,1,3)+CC
(1,K
,1,4)
28 CHOLD1
= CC
(1,K
,1,1)+TR2
+TR3
29 CHOLD2
= CC
(2,K
,1,1)+TI2
+TI3
30 CR2
= CC
(1,K
,1,1)+TR11*TR2
+TR12*TR3
31 CI2
= CC
(2,K
,1,1)+TR11*TI2
+TR12*TI3
32 CR3
= CC
(1,K
,1,1)+TR12*TR2
+TR11*TR3
33 CI3
= CC
(2,K
,1,1)+TR12*TI2
+TR11*TI3
36 CR5
= TI11*TR5
+TI12*TR4
37 CI5
= TI11*TI5
+TI12*TI4
38 CR4
= TI12*TR5
-TI11*TR4
39 CI4
= TI12*TI5
-TI11*TI4
51 TI5
= CC
(2,K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