Re: [R] elementwise matrix multiplication with a special structure

2015-10-26 Thread eugen pircalabelu via R-help
77840-4352 -Original Message----- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of eugen pircalabelu via R-help Sent: Friday, October 23, 2015 12:31 PM To: r-help@r-project.org Subject: [R] elementwise matrix multiplication with a special structure Hello R users, I have

Re: [R] elementwise matrix multiplication with a special structure

2015-10-23 Thread David L Carlson
ge- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of eugen pircalabelu via R-help Sent: Friday, October 23, 2015 12:31 PM To: r-help@r-project.org Subject: [R] elementwise matrix multiplication with a special structure Hello R users, I have the following annoying matrix mul

[R] elementwise matrix multiplication with a special structure

2015-10-23 Thread eugen pircalabelu via R-help
Hello R users, I have the following annoying matrix multiplication and I do not know how to avoid the nested loops, so maybe someone can help me with some ideas. I have searched the forum for past posts but nothing came up.Here it is:  aa=matrix(1:9,3,3) bb=matrix(seq(10,90,by=10),3,3) cc=matrix(