[go: up one dir, main page]

Menu

[17deec]: / timing / time_7.m  Maximize  Restore  History

Download this file

37 lines (24 with data), 693 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
%TIME_7
%
% The purpose of this test is to compare the FB routines.
%
% fb_1 is the original, using two passes through memory and no integer
% optimizations.
%
% fb_2 use only one pass and integer optimizations.
Lr=[480000*sf^2,480000*sf^2,262144*sf^2,262144*sf^2,900*sf^2];
ar=[ 600*sf, 600*sf, 512, 512, 2];
Mr=[ 800*sf, 800*sf, 1024, 1024, 600*sf];
gr=[ 800*sf, 40*600*sf, 1024, 40*512, 600*sf];
for ii=1:length(Lr)
L=Lr(ii);
M=Mr(ii);
a=ar(ii);
gl=gr(ii);
g=rand(L,1);
f=rand(L,1);
gfir=rand(gl,1);
[L, a, M, gl]
c1=mex_dgt_fb_1(f,gl,a,M,1);
c2=mex_dgt_fb_2(f,gl,a,M,1);
end;