Speed up code on GPU by removing nested for loops
Mostra commenti meno recenti
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
Risposta accettata
Più risposte (3)
Noah Walcutt
il 1 Ott 2018
0 voti
Noah Walcutt
il 11 Ott 2018
Modificato: Noah Walcutt
il 11 Ott 2018
Noah Walcutt
il 11 Ott 2018
Categorie
Scopri di più su Parallel for-Loops (parfor) in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!