# HG changeset patch # User idamnjanovic # Date 1300191805 0 # Node ID 92a9b18c3bd3925a74bb21c7acb5f6b7641d0c22 # Parent 42fcbcfca132a49e0908035a6da6e28c3ffdd6dd diff -r 42fcbcfca132 -r 92a9b18c3bd3 solvers/SMALL_cgp.m --- 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);