[R] efficiency with "%*%"

From: <dimitrijoe_at_ipea.gov.br>
Date: Fri 27 Jan 2006 - 00:19:22 EST


Hi,

x and y are (numeric) vectors. I wonder if one of the following is more efficient than the other:

x%*%y

or

sum(x*y)
?

Thanks,
Dimitri Szerman



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Fri Jan 27 00:27:42 2006

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:42:12 EST