Feeds
提问
i need help vectorizing this loop
N = 16; S = randi(2,[N,N])*2-3; for l = 1:(N/2-1) Sl = circshift(S,[l,l]); f(l) = 1/N*sum(sum(S*Sl.'...
7 years 前 | 1 个回答 | 0
1
个回答提问
i need help decreasing computation time in my monte carlo simulation of a 2-d ising model
for school i have to calculate four different grid sizes from N = 16 to N = 126 and for each of those 10 different temperatures ...
7 years 前 | 0 个回答 | 0