I think what you are doing is a tensor algebra. You may want to try tensorA:
http://cran.r-project.org/web/packages/tensorA/index.html On 28 December 2012 06:33, Ranjan Maitra <maitra.mbox.igno...@inbox.com> wrote: > Any pointers on an efficient way of doing this? I considered using > apply, but was not successful. please post that code. Why it was not successful? What was the error message? ______________________________________________ R-help@r-project.org 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.