I wrote this code: app and cova are matrix with dimension equal to variable dim in the code and gsingle.
dim=32;
gfor q=1:256
app(:,:,q)=cova(:,:,q)\geye(dim,dim,'single');
gend
if I try to increase the dimension of dim the result is very slow. If i write the equivalent code with for loop and with cpu variable is faster. Why does it happen?