changeset 63:e08af264ef93

(none)
author idamnjanovic
date Tue, 15 Mar 2011 12:23:35 +0000
parents 92a9b18c3bd3
children 8288a23f041f
files solvers/SMALL_chol.m
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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;