Speed up code on GPU by removing nested for loops
Ältere Kommentare anzeigen
Hello! I'm trying to speed up the following element-by-element array operation using the parallel computing toolbox. Is this a good candidate for arrayfun? What might that look like? Any advice would be greatly appreciated.
for ii = 1:Nx
for jj = 1:Ny
f1(ii,jj) = exp(i*pi*(ii + jj));
end
end
Akzeptierte Antwort
Weitere Antworten (3)
Noah Walcutt
am 1 Okt. 2018
0 Stimmen
Noah Walcutt
am 11 Okt. 2018
Bearbeitet: Noah Walcutt
am 11 Okt. 2018
Noah Walcutt
am 11 Okt. 2018
Kategorien
Mehr zu Parallel for-Loops (parfor) finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!