comparison util/classes/dictionaryMatrices/rotatematrix.m @ 172:9c41f87dead7 danieleb

Minor edit
author Daniele Barchiesi <daniele.barchiesi@eecs.qmul.ac.uk>
date Thu, 17 Nov 2011 11:14:23 +0000
parents 68fb71aa5339
children 8fc38e8df8c6
comparison
equal deleted inserted replaced
171:e8428989412f 172:9c41f87dead7
57 Gprev = G; % save gradient 57 Gprev = G; % save gradient
58 end 58 end
59 iIter = iIter+1; % update iteration counter 59 iIter = iIter+1; % update iteration counter
60 end 60 end
61 Dhat = W*Phi; %rotate matrix 61 Dhat = W*Phi; %rotate matrix
62 cost(iIter:end) = cost(iIter-1); %pad cost vector 62 cost(iIter:end) = cost(iIter-1); %zero-pad cost vector
63 end 63 end
64 64
65 %% Support functions 65 %% Support functions
66 function gamma = polakRibiere(G,Gprev) 66 function gamma = polakRibiere(G,Gprev)
67 %Polak-Ribiere rule for conjugate direction calculation 67 %Polak-Ribiere rule for conjugate direction calculation