Home > hfrc > matlab > @HFRC > mtimes.m

mtimes

PURPOSE ^

MTIMES - matrix multiplication of HFRC objects.

SYNOPSIS ^

function h = mtimes( a, b )

DESCRIPTION ^

 MTIMES - matrix multiplication of HFRC objects.

 Usage: r = a * b;

 If both a and b are HFRC (or one can be a structure), then the result
 is the vectorial dot product of the two sets of current vectors.  
 r = a.U .* b.U + a.V .* b.V

 If b is a vector of length 2, then the vectorial dot product is
 computed and an array is returned.  By this, I mean r = a.U * b(1) +
 a.V * b(2).  Vice-versa if a is a vector of length 2.

 If b is a matrix of any other size, including a scalar, then r.U = a.U * b
 and r.V = a.V * b.  Note that this operation might not always respect
 the dimensionality of the HFRC object.

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

     $Id: mtimes.m,v 1.4 2005-05-25 19:25:09 dmk Exp $    

 Copyright (C) 2004 David M. Kaplan
 Licence: GPL (Gnu Public License)

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Mon 18-Dec-2006 07:26:46 by m2html © 2003