Is it possible to conditionally broadcast variables in parfor loops?
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
Edric Ellis
2018-3-22
I can't quite picture how your current code is working - is there any chance you could post a minimal example.
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Loops and Conditional Statements 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!