matrixMultiply

Gregory Lypny gregory.lypny at videotron.ca
Tue Jul 23 14:37:00 EDT 2002


Hi Everyone,

	I'm  having trouble with matrixMultiply.  I've created two 1 x 20 
vectors (arrays) named Prob and V.  I want to compute the dot product 
(for example, the expected value of V in statistics), which is

	prob[1] x V[1] + prob[2] x V[2] + ... + prob[20] x V[20]

	but it's not clear whether MetaCard treats vectors as columns or 
rows by default.  All of the following result in error messages:

	matrixMultiply(prob,V)	

	matrixMultiply(transpose(prob),V)

	matrixMultiply(prob,transpose(V))

	Any help would be much appreciated.

		Regards,

			Greg




	Gregory Lypny
	Concordia University
	___________________
	"Better for us if you don't understand."
		The Tragically Hip

	http://rubbersoul.concordia.ca




More information about the metacard mailing list