Skip to content

Commit

Permalink
Update IRCUR.m
Browse files Browse the repository at this point in the history
The new version is about 15% faster than the previous version, however, the readability of the code is much worse.
  • Loading branch information
caesarcai committed Aug 7, 2023
1 parent b624743 commit 2bec2c2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions IRCUR.m
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,8 @@
% Please cite our paper "Rapid Robust Principal Component Analysis:
% CUR Accelerated Inexact Low Rank Estimation" if you use this code
%
%

[m,n] = size(D);


%% Default/Inputed parameters
max_iter = 200;
Expand Down Expand Up @@ -139,8 +138,8 @@
else
zeta = gamma * zeta;
% L_cols = C*pinv_U*(R(:,cols));
% L_rows = (C(rows,:))*pinv_U*R;
L_cols = C*Vu(:,1:r)*(Su*(Uu(:,1:r))'*(R(:,cols)));
% L_rows = (C(rows,:))*pinv_U*R;
L_rows = (C(rows,:))*Vu(:,1:r)*(Su*(Uu(:,1:r))'*R);
S_rows = wthresh( D_rows-L_rows,'h',zeta);
S_cols = wthresh( D_cols-L_cols,'h',zeta);
Expand Down

0 comments on commit 2bec2c2

Please sign in to comment.