フィルターのクリア

matlab-basic

2 ビュー (過去 30 日間)
Rakesh Praveen
Rakesh Praveen 2011 年 11 月 21 日
hi,
does matlab program inside a if loop always executed sequentially ?
  3 件のコメント
Sean de Wolski
Sean de Wolski 2011 年 11 月 21 日
If you tell it to!
Walter Roberson
Walter Roberson 2011 年 12 月 8 日
There is no such thing as an if loop.

サインインしてコメントする。

採用された回答

Walter Roberson
Walter Roberson 2011 年 11 月 21 日
No, the Just In Time (JIT) compiler can end up reordering some portions of the code.
  1 件のコメント
Jan
Jan 2011 年 11 月 21 日
Reordering does not mean, that the program is not executed sequentially. The parallelized functions like FILTER, MIN, SUM etc will process the data with multiple threads. On the processor level a branch prediction is applied also.
Therefore I agree with Walter and add the argument, that "sequential execution" is not exactly defined on modern processors.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by