Is there a faster version of min

5 次查看(过去 30 天)
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