Is it possible to conditionally broadcast variables in parfor loops?

1 回表示 (過去 30 日間)
Jason Climer
Jason Climer 2018 年 3 月 20 日
コメント済み: Edric Ellis 2018 年 3 月 22 日
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
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 ExchangeLoops and Conditional Statements についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by