Mercurial > hg > smallbox
annotate util/ksvd utils/rowlincomb.m @ 174:dc2f0fa21310 danieleb
multiple trials with error bars
author | Daniele Barchiesi <daniele.barchiesi@eecs.qmul.ac.uk> |
---|---|
date | Thu, 17 Nov 2011 11:16:15 +0000 |
parents | c3eca463202d |
children |
rev | line source |
---|---|
idamnjanovic@70 | 1 %ROWLINCOMB Linear combination of matrix rows. |
idamnjanovic@70 | 2 % Y = ROWLINCOMB(X,A,ROWS) computes a linear combination of the rows of |
idamnjanovic@70 | 3 % the matrix A. The row indices are specified in the vector ROWS, and the |
idamnjanovic@70 | 4 % correspoinding coefficients are specified in the vector X. The vectors |
idamnjanovic@70 | 5 % ROWS and X must be of the same length. The call Y = ROWLINCOMB(X,A,ROWS) |
idamnjanovic@70 | 6 % is essentially equivalent to the command |
idamnjanovic@70 | 7 % |
idamnjanovic@70 | 8 % Y = X'*A(ROWS,:) . |
idamnjanovic@70 | 9 % |
idamnjanovic@70 | 10 % However, it is implemented much more efficiently. |
idamnjanovic@70 | 11 % |
idamnjanovic@70 | 12 % Y = ROWLINCOMB(X,A,ROWS,COLS) only works on the columns of A specified |
idamnjanovic@70 | 13 % in COLS, returning a vector of length equal to COLS. This call is |
idamnjanovic@70 | 14 % essentially equivalent to the command |
idamnjanovic@70 | 15 % |
idamnjanovic@70 | 16 % Y = X'*A(ROWS,COLS) . |
idamnjanovic@70 | 17 % |
idamnjanovic@70 | 18 % See also COLLINCOMB. |
idamnjanovic@70 | 19 |
idamnjanovic@70 | 20 |
idamnjanovic@70 | 21 % Ron Rubinstein |
idamnjanovic@70 | 22 % Computer Science Department |
idamnjanovic@70 | 23 % Technion, Haifa 32000 Israel |
idamnjanovic@70 | 24 % ronrubin@cs |
idamnjanovic@70 | 25 % |
idamnjanovic@70 | 26 % April 2009 |