Thanks very much, Uwe. The calculation time is now comparable with matlab. Oyvind -- View this message in context: http://r.789695.n4.nabble.com/matrix-multiplication-speed-R-tp3217257p3217539.html Sent from the R devel mailing list archive at Nabble.com.