annotate util/ksvd utils/sprow.m @ 219:4337e28183f1
luisf_dev
Modified help comments of wrapper_mm_DL.m, wrapper_mm_solver.m, SMALL_rlsdla.m & SMALL_AudioDenoise_DL_test_KSVDvsSPAMS.m. Moved wrapper_ALPS_toolbox from toolboxes to toolboxes/alps and added some extra help comments.
author |
Aris Gretsistas <aris.gretsistas@elec.qmul.ac.uk> |
date |
Fri, 23 Mar 2012 20:48:25 +0000 |
parents |
c3eca463202d |
children |
|
rev |
line source |
idamnjanovic@70
|
1 %SPROW Extract row of sparse matrix.
|
idamnjanovic@70
|
2 % X = SPROW(A,J) where A is a sparse matrix, returns the nonzero values in
|
idamnjanovic@70
|
3 % the row A(J,:).
|
idamnjanovic@70
|
4 %
|
idamnjanovic@70
|
5 % [X,ID] = SPROW(A,J) also returns the column indices of the nonzeros.
|
idamnjanovic@70
|
6 %
|
idamnjanovic@70
|
7 % Note that the call [X,ID] = SPROW(A,J) is equivalent (but more efficient
|
idamnjanovic@70
|
8 % than) the Matlab code
|
idamnjanovic@70
|
9 %
|
idamnjanovic@70
|
10 % IDS = find(A(J,:));
|
idamnjanovic@70
|
11 % X = A(J,IDS);
|
idamnjanovic@70
|
12
|
idamnjanovic@70
|
13
|
idamnjanovic@70
|
14 % Ron Rubinstein
|
idamnjanovic@70
|
15 % Computer Science Department
|
idamnjanovic@70
|
16 % Technion, Haifa 32000 Israel
|
idamnjanovic@70
|
17 % ronrubin@cs
|
idamnjanovic@70
|
18 %
|
idamnjanovic@70
|
19 % August 2009
|