Hi all,

I'd like to do a multiplication between 2 matrices buy only want resulsts of
cloumn 1 * column 1, column 2 * column 2 and so on.

Now I do

C <- diag(t(A) %*% B)

Is there a bulit in way to do this?

Thank you.

        [[alternative HTML version deleted]]

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to