Hi, given symmetric matrices für i=1,…,m, positiv definite and symmetric and ,
I want to compute with .
I solved this with the following for loop:
for i=1:m M_row=X*A(:,(i-1)*n+1:i*n)*inv_S; for j=i:m %since M is symmetric
M(i,j)=trace(M_row*A(:,(j-1)*n+1:j*n)); endend
Is there a more efficient way to solve this in matlab? with vectorization?
Best Answer