Code covered by the BSD License  

Highlights from
Statistical Learning Toolbox

from Statistical Learning Toolbox by Dahua Lin
Functions for statistical learning, pattern recognition and computer vision, covering many topics.

Description of slmulrowcols
Home > sltoolbox > core > slmulrowcols.m

slmulrowcols

PURPOSE ^

SLMULROWCOLS Multiplies the vectors to all rows and all columns

SYNOPSIS ^

function Y = slmulrowcols(X, vrow, vcol)

DESCRIPTION ^

SLMULROWCOLS Multiplies the vectors to all rows and all columns

 $ Syntax $
   - Y = slmulrowcols(X, vrow, vcol)

 $ Arguments $
   - X:            The input matrix
   - vrow:         The row vector to multiply to all rows
   - vcol:         The column vector to multiply to all columns
   - Y:            The resultant matrix

 $ Description $
   - Y = slmulrowcols(X, vrow, vcol) multiplies vrow to all rows of X and
     adds vcol to all columns of Y.

 $ Remarks $
   - The implementation simply wrapps the mex function rowcolop_core.

 $ History $
   - Created by Dahua Lin, on Sep 10, 2006

CROSS-REFERENCE INFORMATION ^

This function calls:
This function is called by:
  • slmetric_pw SLMETRIC_PW Compute the metric between column vectors pairwisely
  • slkpca SLPCA Learns a Kernel PCA model from training samples
  • slgembed SLGEMBED Solves the general graph-based embedding
  • sllemap SLLEMAP Solves Laplacian Eigenmap Embedding

SOURCE CODE ^

0001 function Y = slmulrowcols(X, vrow, vcol)
0002 %SLMULROWCOLS Multiplies the vectors to all rows and all columns
0003 %
0004 % $ Syntax $
0005 %   - Y = slmulrowcols(X, vrow, vcol)
0006 %
0007 % $ Arguments $
0008 %   - X:            The input matrix
0009 %   - vrow:         The row vector to multiply to all rows
0010 %   - vcol:         The column vector to multiply to all columns
0011 %   - Y:            The resultant matrix
0012 %
0013 % $ Description $
0014 %   - Y = slmulrowcols(X, vrow, vcol) multiplies vrow to all rows of X and
0015 %     adds vcol to all columns of Y.
0016 %
0017 % $ Remarks $
0018 %   - The implementation simply wrapps the mex function rowcolop_core.
0019 %
0020 % $ History $
0021 %   - Created by Dahua Lin, on Sep 10, 2006
0022 %
0023 
0024 Y = rowcolop_core(X, vrow, vcol, 2); % 2 is the opcode of multiplication

Generated on Wed 20-Sep-2006 12:43:11 by m2html © 2003

Contact us at files@mathworks.com