1 | !CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC |
---|
2 | ! |
---|
3 | ! FFTPACK 5.0 |
---|
4 | ! |
---|
5 | ! Authors: Paul N. Swarztrauber and Richard A. Valent |
---|
6 | ! |
---|
7 | ! $Id: c1f4kb.f,v 1.2 2004/06/15 21:08:32 rodney Exp $ |
---|
8 | ! |
---|
9 | !CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC |
---|
10 | |
---|
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) |
---|
13 | ! |
---|
14 | ! FFTPACK 5.0 auxiliary routine |
---|
15 | ! |
---|
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 END DO |
---|
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 END DO |
---|
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 END DO |
---|
81 | RETURN |
---|
82 | END |
---|