Is there a faster version of min

조회 수: 5 (최근 30일)
Chaoyang Jiang
Chaoyang Jiang 2018년 4월 27일
댓글: Walter Roberson 2018년 4월 27일
I did the profiling, and this line takes the most of time: running 28449740 times and takes 163.84s.
I am wonderring if there is any version that is faster than min.
[a,b]=min(c(s1,s2));
  댓글 수: 9
Stephen23
Stephen23 2018년 4월 27일
"... this line takes the most of time: running 28449740 times and takes 163.84s."
Sure. But there are several operations on that line, so how do you know that min is the slow one?
Walter Roberson
Walter Roberson 2018년 4월 27일
Reminder: extracting consecutive rows is faster than extracting consecutive columns, so you should consider transposing your array.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Parallel Computing Fundamentals에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by