# HG changeset patch # User nikcleju # Date 1320528414 0 # Node ID 2c6e8cf25bd4c7214bf7ed1cb1ca54448998192e # Parent 66d8654fb73e82449c23358629773aa7665f7e1d Fixed assert bug in SL0_approx() diff -r 66d8654fb73e -r 2c6e8cf25bd4 matlab/SL0/SL0_approx.m --- a/matlab/SL0/SL0_approx.m Sat Nov 05 21:26:17 2011 +0000 +++ b/matlab/SL0/SL0_approx.m Sat Nov 05 21:26:54 2011 +0000 @@ -135,7 +135,7 @@ if norm(A*dir) >= eps s = s - (1-eps/norm(A*dir)) * dir; end - assert(abs(norm(x - A*s) - eps) < 1e-4*eps) + assert(norm(x - A*s) < eps + 1e-6) end if ShowProgress