# HG changeset patch # User idamnjanovic # Date 1300191815 0 # Node ID e08af264ef93d65ced83bdcf757301b523adbef2 # Parent 92a9b18c3bd3925a74bb21c7acb5f6b7641d0c22 diff -r 92a9b18c3bd3 -r e08af264ef93 solvers/SMALL_chol.m --- a/solvers/SMALL_chol.m Tue Mar 15 12:23:25 2011 +0000 +++ b/solvers/SMALL_chol.m Tue Mar 15 12:23:35 2011 +0000 @@ -29,7 +29,7 @@ if isa(Dict,'float') D =@(z) Dict*z; Dt =@(z) Dict'*z; - explicitD=1; + explicitD=0; elseif isobject(Dict) D =@(z) Dict*z; Dt =@(z) Dict'*z; @@ -37,8 +37,8 @@ try DictT=varargin{1}; if isa(DictT,'function_handle'); - D=Dict; - Dt=DictT; + D=@(z)Dict(z,1); + Dt=@(z)Dict(z,2); else error('If Dictionary is a function handle,Transpose Dictionary also needs to be a function handle. '); end @@ -67,7 +67,7 @@ indx = []; a = zeros(m,1); currResNorm = norm(residual); - errorGoal=errorGoal*currResNorm; + errorGoal1=errorGoal*currResNorm; j = 0; while currResNorm>errorGoal & j < maxNumCoef, j = j+1;