Speed up code on GPU by removing nested for loops
Afficher commentaires plus anciens
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
Réponse acceptée
Plus de réponses (3)
Noah Walcutt
le 1 Oct 2018
0 votes
Noah Walcutt
le 11 Oct 2018
Modifié(e) : Noah Walcutt
le 11 Oct 2018
Noah Walcutt
le 11 Oct 2018
Catégories
En savoir plus sur Parallel for-Loops (parfor) dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!