Add symbol checks to translators for MCALL, MARRAYREF, and MARRAYSET
[maxima.git] / share / fftpack5 / fortran / r1f4kb.f
blobbff4edf1293accc8bbdf7a022f594d6e021305b2
1 CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
3 C FFTPACK 5.0
5 C Authors: Paul N. Swarztrauber and Richard A. Valent
7 C $Id$
9 CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
11 SUBROUTINE R1F4KB (IDO,L1,CC,IN1,CH,IN2,WA1,WA2,WA3)
12 REAL CC(IN1,IDO,4,L1) ,CH(IN2,IDO,L1,4) ,
13 1 WA1(IDO) , WA2(IDO) , WA3(IDO)
15 SQRT2=SQRT(2.)
16 DO 101 K=1,L1
17 CH(1,1,K,3) = (CC(1,1,1,K)+CC(1,IDO,4,K))
18 1 -(CC(1,IDO,2,K)+CC(1,IDO,2,K))
19 CH(1,1,K,1) = (CC(1,1,1,K)+CC(1,IDO,4,K))
20 1 +(CC(1,IDO,2,K)+CC(1,IDO,2,K))
21 CH(1,1,K,4) = (CC(1,1,1,K)-CC(1,IDO,4,K))
22 1 +(CC(1,1,3,K)+CC(1,1,3,K))
23 CH(1,1,K,2) = (CC(1,1,1,K)-CC(1,IDO,4,K))
24 1 -(CC(1,1,3,K)+CC(1,1,3,K))
25 101 CONTINUE
26 IF (IDO-2) 107,105,102
27 102 IDP2 = IDO+2
28 DO 104 K=1,L1
29 DO 103 I=3,IDO,2
30 IC = IDP2-I
31 CH(1,I-1,K,1) = (CC(1,I-1,1,K)+CC(1,IC-1,4,K))
32 1 +(CC(1,I-1,3,K)+CC(1,IC-1,2,K))
33 CH(1,I,K,1) = (CC(1,I,1,K)-CC(1,IC,4,K))
34 1 +(CC(1,I,3,K)-CC(1,IC,2,K))
35 CH(1,I-1,K,2)=WA1(I-2)*((CC(1,I-1,1,K)-CC(1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