Re: [R] Vectorize a series of Matrix Multiplications

2013-06-19 Thread David Winsemius
On Jun 17, 2013, at 8:48 AM, G Vishwanath wrote: > Can I have some help in vectorizing a series of matrix multiplications? > Toy Example > > mat_size=2; num_matrices=3; num_users=2 > > ToyArray=array(1,dim=c(mat_size, mat_size, num_matrices, num_users)) > /* So I open an 4-dim array to store

[R] Vectorize a series of Matrix Multiplications

2013-06-17 Thread G Vishwanath
Can I have some help in vectorizing a series of matrix multiplications? Toy Example mat_size=2; num_matrices=3; num_users=2 ToyArray=array(1,dim=c(mat_size,   mat_size, num_matrices, num_users)) /* So I open an 4-dim array to store 3  2 X 2 matrrices  for 2 users.  For each user I want to multip