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 CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by