Re: [R] matrix cross product in R different from cross product in Matlab

2010-05-08 Thread Duncan Murdoch
Susanne Schmidt wrote: Hi all, I have been searching all sorts of documentation, reference cards, cheat sheets but can't find why R's crossprod(A, B) which is identical to A%*%B If you read the help page ?crossprod, you'll see it is supposed to be identical to t(A) %*% B. does not produ

[R] matrix cross product in R different from cross product in Matlab

2010-05-08 Thread Susanne Schmidt
Hi all, I have been searching all sorts of documentation, reference cards, cheat sheets but can't find why R's crossprod(A, B) which is identical to A%*%B does not produce the same as Matlabs cross(A, B) Supposedly both calculate the cross product, and say so, or where do I go wrong? R is on