Converting dependent for loops to parfor
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Roughly, the code looks like this:
for t=1:NumberOfSteps
F=zeros(1,N)
for i=1:N-1
for j=i+1:N
rij=r(:,i)-r(:,j)
Fij=... %some function of rij
F(:,i)=F(:,i)+Fij
F(:,j)=F(:,j)-Fij
end
end
end
Any idea how to convert this to parfor?
Many thanks!!
0 comentarios
Respuestas (2)
MBD4FUN
el 25 de Dic. de 2017
Check it out! It might help ;-)
Parallel Computing Toolbox
0 comentarios
Ver también
Categorías
Más información sobre Loops and Conditional Statements en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!