Speed up code on GPU by removing nested for loops
Mostrar comentarios más antiguos
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
Respuesta aceptada
Más respuestas (3)
Noah Walcutt
el 1 de Oct. de 2018
0 votos
Noah Walcutt
el 11 de Oct. de 2018
Editada: Noah Walcutt
el 11 de Oct. de 2018
Noah Walcutt
el 11 de Oct. de 2018
Categorías
Más información sobre Parallel for-Loops (parfor) en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!