Add symbol checks to translators for MCALL, MARRAYREF, and MARRAYSET
[maxima.git] / share / fftpack5 / fortran / c1f4kb.f
blobc1a51f296b51e8b0871e2f3cdec11a94ddf96d4a
1 CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
3 C FFTPACK 5.0
5 C Authors: Paul N. Swarztrauber and Richard A. Valent
7 C $Id$
9 CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
11 SUBROUTINE C1F4KB (IDO,L1,NA,CC,IN1,CH,IN2,WA)
12 REAL CC(IN1,L1,IDO,4),CH(IN2,L1,4,IDO),WA(IDO,3,2)
14 C FFTPACK 5.0 auxiliary routine
16 IF (IDO.GT.1 .OR. NA.EQ.1) GO TO 102
17 DO 101 K=1,L1
18 TI1 = CC(2,K,1,1)-CC(2,K,1,3)
19 TI2 = CC(2,K,1,1)+CC(2,K,1,3)
20 TR4 = CC(2,K,1,4)-CC(2,K,1,2)
21 TI3 = CC(2,K,1,2)+CC(2,K,1,4)
22 TR1 = CC(1,K,1,1)-CC(1,K,1,3)
23 TR2 = CC(1,K,1,1)+CC(1,K,1,3)
24 TI4 = CC(1,K,1,2)-CC(1,K,1,4)
25 TR3 = CC(1,K,1,2)+CC(1,K,1,4)
26 CC(1,K,1,1) = TR2+TR3
27 CC(1,K,1,3) = TR2-TR3
28 CC(2,K,1,1) = TI2+TI3
29 CC(2,K,1,3) = TI2-TI3
30 CC(1,K,1,2) = TR1+TR4
31 CC(1,K,1,4) = TR1-TR4
32 CC(2,K,1,2) = TI1+TI4
33 CC(2,K,1,4) = TI1-TI4
34 101 CONTINUE
35 RETURN
36 102 DO 103 K=1,L1
37 TI1 = CC(2,K,1,1)-CC(2,K,1,3)
38 TI2 = CC(2,K,1,1)+CC(2,K,1,3)
39 TR4 = CC(2,K,1,4)-CC(2,K,1,2)
40 TI3 = CC(2,K,1,2)+CC(2,K,1,4)
41 TR1 = CC(1,K,1,1)-CC(1,K,1,3)
42 TR2 = CC(1,K,1,1)+CC(1,K,1,3)
43 TI4 = CC(1,K,1,2)-CC(1,K,1,4)
44 TR3 = CC(1,K,1,2)+CC(1,K,1,4)
45 CH(1,K,1,1) = TR2+TR3
46 CH(1,K,3,1) = TR2-TR3
47 CH(2,K,1,1) = TI2+TI3
48 CH(2,K,3,1) = TI2-TI3
49 CH(1,K,2,1) = TR1+TR4
50 CH(1,K,4,1) = TR1-TR4
51 CH(2,K,2,1) = TI1+TI4
52 CH(2,K,4,1) = TI1-TI4
53 103 CONTINUE
54 IF(IDO .EQ. 1) RETURN
55 DO 105 I=2,IDO
56 DO 104 K=1,L1
57 TI1 = CC(2,K,I,1)-CC(2,K,I,3)
58 TI2 = CC(2,K,I,1)+CC(2,K,I,3)
59 TI3 = CC(2,K,I,2)+CC(2,K,I,4)
60 TR4 = CC(2,K,I,4)-CC(2,K,I,2)
61 TR1 = CC(1,K,I,1)-CC(1,K,I,3)
62 TR2 = CC(1,K,I,1)+CC(1,K,I,3)
63 TI4 = CC(1,K,I,2)-CC(1,K,I,4)
64 TR3 = CC(1,K,I,2)+CC(1,K,I,4)
65 CH(1,K,1,I) = TR2+TR3
66 CR3 = TR2-TR3
67 CH(2,K,1,I) = TI2+TI3
68 CI3 = TI2-TI3
69 CR2 = TR1+TR4
70 CR4 = TR1-TR4
71 CI2 = TI1+TI4
72 CI4 = TI1-TI4
73 CH(1,K,2,I) = WA(I,1,1)*CR2-WA(I,1,2)*CI2
74 CH(2,K,2,I) = WA(I,1,1)*CI2+WA(I,1,2)*CR2
75 CH(1,K,3,I) = WA(I,2,1)*CR3-WA(I,2,2)*CI3
76 CH(2,K,3,I) = WA(I,2,1)*CI3+WA(I,2,2)*CR3
77 CH(1,K,4,I) = WA(I,3,1)*CR4-WA(I,3,2)*CI4
78 CH(2,K,4,I) = WA(I,3,1)*CI4+WA(I,3,2)*CR4
79 104 CONTINUE
80 105 CONTINUE
81 RETURN
82 END