[R] efficiency with "%*%"
dimitrijoe@ipea.gov.br
dimitrijoe at ipea.gov.br
Thu Jan 26 14:19:22 CET 2006
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
More information about the R-help
mailing list