annotate DL/RLS-DLA/private/sprow.m @ 60:ad36f80e2ccf

(none)
author idamnjanovic
date Tue, 15 Mar 2011 12:20:59 +0000
parents
children
rev   line source
idamnjanovic@60 1 %SPROW Extract row of sparse matrix.
idamnjanovic@60 2 % X = SPROW(A,J) where A is a sparse matrix, returns the nonzero values in
idamnjanovic@60 3 % the row A(J,:).
idamnjanovic@60 4 %
idamnjanovic@60 5 % [X,ID] = SPROW(A,J) also returns the column indices of the nonzeros.
idamnjanovic@60 6 %
idamnjanovic@60 7 % Note that the call [X,ID] = SPROW(A,J) is equivalent (but more efficient
idamnjanovic@60 8 % than) the Matlab code
idamnjanovic@60 9 %
idamnjanovic@60 10 % IDS = find(A(J,:));
idamnjanovic@60 11 % X = A(J,IDS);
idamnjanovic@60 12
idamnjanovic@60 13
idamnjanovic@60 14 % Ron Rubinstein
idamnjanovic@60 15 % Computer Science Department
idamnjanovic@60 16 % Technion, Haifa 32000 Israel
idamnjanovic@60 17 % ronrubin@cs
idamnjanovic@60 18 %
idamnjanovic@60 19 % August 2009