Diff of /testing/test_gga.m [76dce7] .. [89ea83] Maximize Restore

  Switch to side-by-side view

--- a/testing/test_gga.m
+++ b/testing/test_gga.m
@@ -5,7 +5,7 @@
 global LTFAT_TEST_TYPE;
 tolerance = 2e-10;
 if strcmpi(LTFAT_TEST_TYPE,'single')
-   tolerance = 3e-4;
+   tolerance = 9e-4;
 end
 L = 36;
 W = 17;
@@ -13,19 +13,19 @@
 
 
 
-res = norm(fft(cast(f,'double'))-gga(f,0:L-1));
+res = norm(fft(cast(f,'double'))-gga(f,linspace(0,1-1/L,L)));
 [test_failed,fail]=ltfatdiditfail(res,test_failed,tolerance);
 fprintf('RES 1 cols: L:%3i, W:%3i %s\n',L,W,fail);
 
-res = norm(fft(cast(f,'double'),[],2)-gga(f,0:W-1,2));
+res = norm(fft(cast(f,'double'),[],2)-gga(f,linspace(0,1-1/W,W),[],2));
 [test_failed,fail]=ltfatdiditfail(res,test_failed,tolerance);
 fprintf('RES 1 rows: L:%3i, W:%3i %s\n',L,W,fail);
 
 
- res = norm(fft(cast(f,'double'),2*L)-gga(f,0:0.5:L-0.5));
+ res = norm(fft(cast(f,'double'),2*L)-gga(f,linspace(0,1-0.5/L,2*L)));
  [test_failed,fail]=ltfatdiditfail(res,test_failed,tolerance);
  fprintf('RES 1/2 cols: L:%3i, W:%3i %s\n',L,W,fail);
  
- res = norm(fft(cast(f,'double'),5*L)-gga(f,0:1/5:L-1/5));
+ res = norm(fft(cast(f,'double'),5*L)-gga(f,linspace(0,1-0.2/L,5*L)));
  [test_failed,fail]=ltfatdiditfail(res,test_failed,tolerance);
  fprintf('RES 1/5 cols: L:%3i, W:%3i %s\n',L,W,fail);