I am looking for a way to avoid for-loops in my code to keep computation times short.
k = rand(15,15)
v= rand(6,15)
for i=1:6
C(i) = v(i, :) * k * v(i, :)'
end
Is there such a possibility in this example, unfortunately I can't think of anything. In the real program v will not have only 6 lines, but thousands.