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