Hi All,
     I am wondering if there is an efficient  way to do the following matrix 
multiplication,
a[1,,]       1, 2
                3, 4

a[2,,]       4, 3
                2, 1
 
b[1,,]        5,6
                 7,8

b[2,,]        8,7
                 6,5

I need the result c, with

c[1,,] = a[1,,] %*% b[1,,]
c[2,,] = a[2,,] %*% b[2,,] 

Thanks in advance for any help.

______________________________________________
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
and provide commented, minimal, self-contained, reproducible code.

Reply via email to