Mercurial > hg > smallbox
annotate DL/RLS-DLA/private/rowlincomb.m @ 65:55faa9b5d1ac
(none)
author | idamnjanovic |
---|---|
date | Wed, 16 Mar 2011 13:41:02 +0000 |
parents | ad36f80e2ccf |
children |
rev | line source |
---|---|
idamnjanovic@60 | 1 %ROWLINCOMB Linear combination of matrix rows. |
idamnjanovic@60 | 2 % Y = ROWLINCOMB(X,A,ROWS) computes a linear combination of the rows of |
idamnjanovic@60 | 3 % the matrix A. The row indices are specified in the vector ROWS, and the |
idamnjanovic@60 | 4 % correspoinding coefficients are specified in the vector X. The vectors |
idamnjanovic@60 | 5 % ROWS and X must be of the same length. The call Y = ROWLINCOMB(X,A,ROWS) |
idamnjanovic@60 | 6 % is essentially equivalent to the command |
idamnjanovic@60 | 7 % |
idamnjanovic@60 | 8 % Y = X'*A(ROWS,:) . |
idamnjanovic@60 | 9 % |
idamnjanovic@60 | 10 % However, it is implemented much more efficiently. |
idamnjanovic@60 | 11 % |
idamnjanovic@60 | 12 % Y = ROWLINCOMB(X,A,ROWS,COLS) only works on the columns of A specified |
idamnjanovic@60 | 13 % in COLS, returning a vector of length equal to COLS. This call is |
idamnjanovic@60 | 14 % essentially equivalent to the command |
idamnjanovic@60 | 15 % |
idamnjanovic@60 | 16 % Y = X'*A(ROWS,COLS) . |
idamnjanovic@60 | 17 % |
idamnjanovic@60 | 18 % See also COLLINCOMB. |
idamnjanovic@60 | 19 |
idamnjanovic@60 | 20 |
idamnjanovic@60 | 21 % Ron Rubinstein |
idamnjanovic@60 | 22 % Computer Science Department |
idamnjanovic@60 | 23 % Technion, Haifa 32000 Israel |
idamnjanovic@60 | 24 % ronrubin@cs |
idamnjanovic@60 | 25 % |
idamnjanovic@60 | 26 % April 2009 |