Mercurial > hg > smallbox
diff solvers/SMALL_cgp.m @ 62:92a9b18c3bd3
(none)
author | idamnjanovic |
---|---|
date | Tue, 15 Mar 2011 12:23:25 +0000 |
parents | 524cc3fff5ac |
children | fb32456fba2c |
line wrap: on
line diff
--- a/solvers/SMALL_cgp.m Tue Mar 15 12:21:31 2011 +0000 +++ b/solvers/SMALL_cgp.m Tue Mar 15 12:23:25 2011 +0000 @@ -36,8 +36,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 @@ -48,7 +48,7 @@ error('Dictionary is of unsupported type. Use explicit matrix, function_handle or object. Exiting.'); end %% -positivity=1; +%positivity=1; [n,P]=size(X);