Is it possible to conditionally broadcast variables in parfor loops?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
I have a variable that is either used as a broadcast variable or independently assigned for each loop in a parfor loop. The workaround I have is to assign the broadcast value or the loop-assigned value to a temporary variable in the loop, but this seems to be an unnecessary step and doubles the memory requirements for the broadcast variable. Is there a more elegant solution?
1 Kommentar
Edric Ellis
am 22 Mär. 2018
I can't quite picture how your current code is working - is there any chance you could post a minimal example.
Antworten (0)
Siehe auch
Kategorien
Mehr zu Loops and Conditional Statements finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!