zpassb5.f

Go to the documentation of this file.
00001       subroutine zpassb5 (ido,l1,cc,ch,wa1,wa2,wa3,wa4)
00002       implicit double precision (a-h,o-z)
00003       dimension       cc(ido,5,l1)           ,ch(ido,l1,5)           ,
00004      1                wa1(1)     ,wa2(1)     ,wa3(1)     ,wa4(1)
00005       data tr11,ti11,tr12,ti12 /.309016994374947d0,.951056516295154d0,
00006      1-.809016994374947d0,.587785252292473d0/
00007       if (ido .ne. 2) go to 102
00008       do 101 k=1,l1
00009          ti5 = cc(2,2,k)-cc(2,5,k)
00010          ti2 = cc(2,2,k)+cc(2,5,k)
00011          ti4 = cc(2,3,k)-cc(2,4,k)
00012          ti3 = cc(2,3,k)+cc(2,4,k)
00013          tr5 = cc(1,2,k)-cc(1,5,k)
00014          tr2 = cc(1,2,k)+cc(1,5,k)
00015          tr4 = cc(1,3,k)-cc(1,4,k)
00016          tr3 = cc(1,3,k)+cc(1,4,k)
00017          ch(1,k,1) = cc(1,1,k)+tr2+tr3
00018          ch(2,k,1) = cc(2,1,k)+ti2+ti3
00019          cr2 = cc(1,1,k)+tr11*tr2+tr12*tr3
00020          ci2 = cc(2,1,k)+tr11*ti2+tr12*ti3
00021          cr3 = cc(1,1,k)+tr12*tr2+tr11*tr3
00022          ci3 = cc(2,1,k)+tr12*ti2+tr11*ti3
00023          cr5 = ti11*tr5+ti12*tr4
00024          ci5 = ti11*ti5+ti12*ti4
00025          cr4 = ti12*tr5-ti11*tr4
00026          ci4 = ti12*ti5-ti11*ti4
00027          ch(1,k,2) = cr2-ci5
00028          ch(1,k,5) = cr2+ci5
00029          ch(2,k,2) = ci2+cr5
00030          ch(2,k,3) = ci3+cr4
00031          ch(1,k,3) = cr3-ci4
00032          ch(1,k,4) = cr3+ci4
00033          ch(2,k,4) = ci3-cr4
00034          ch(2,k,5) = ci2-cr5
00035   101 continue
00036       return
00037   102 do 104 k=1,l1
00038          do 103 i=2,ido,2
00039             ti5 = cc(i,2,k)-cc(i,5,k)
00040             ti2 = cc(i,2,k)+cc(i,5,k)
00041             ti4 = cc(i,3,k)-cc(i,4,k)
00042             ti3 = cc(i,3,k)+cc(i,4,k)
00043             tr5 = cc(i-1,2,k)-cc(i-1,5,k)
00044             tr2 = cc(i-1,2,k)+cc(i-1,5,k)
00045             tr4 = cc(i-1,3,k)-cc(i-1,4,k)
00046             tr3 = cc(i-1,3,k)+cc(i-1,4,k)
00047             ch(i-1,k,1) = cc(i-1,1,k)+tr2+tr3
00048             ch(i,k,1) = cc(i,1,k)+ti2+ti3
00049             cr2 = cc(i-1,1,k)+tr11*tr2+tr12*tr3
00050             ci2 = cc(i,1,k)+tr11*ti2+tr12*ti3
00051             cr3 = cc(i-1,1,k)+tr12*tr2+tr11*tr3
00052             ci3 = cc(i,1,k)+tr12*ti2+tr11*ti3
00053             cr5 = ti11*tr5+ti12*tr4
00054             ci5 = ti11*ti5+ti12*ti4
00055             cr4 = ti12*tr5-ti11*tr4
00056             ci4 = ti12*ti5-ti11*ti4
00057             dr3 = cr3-ci4
00058             dr4 = cr3+ci4
00059             di3 = ci3+cr4
00060             di4 = ci3-cr4
00061             dr5 = cr2+ci5
00062             dr2 = cr2-ci5
00063             di5 = ci2-cr5
00064             di2 = ci2+cr5
00065             ch(i-1,k,2) = wa1(i-1)*dr2-wa1(i)*di2
00066             ch(i,k,2) = wa1(i-1)*di2+wa1(i)*dr2
00067             ch(i-1,k,3) = wa2(i-1)*dr3-wa2(i)*di3
00068             ch(i,k,3) = wa2(i-1)*di3+wa2(i)*dr3
00069             ch(i-1,k,4) = wa3(i-1)*dr4-wa3(i)*di4
00070             ch(i,k,4) = wa3(i-1)*di4+wa3(i)*dr4
00071             ch(i-1,k,5) = wa4(i-1)*dr5-wa4(i)*di5
00072             ch(i,k,5) = wa4(i-1)*di5+wa4(i)*dr5
00073   103    continue
00074   104 continue
00075       return
00076       end
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines