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

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