필터 지우기
필터 지우기

why knnsearch function in matlab2016a and 2020b shows different efficiency?

조회 수: 2 (최근 30일)
like this code,in matlab 2020b t1=10s in matlab 2016 a t1=70s,why?is 2020b knnsearch applies parallel programing?
for M=1500*1500:5000:1500*1500
rate_arr_matlab_cpp8t=[];
rate_arr_cpp_cpp8t=[];
a=(randi([-50000,58020],M,2));
b=(randi([-50000,58020],M,2));
tic
[index,dist_min]=knnsearch(a,b,'k',15);
t1=toc;
matlab=[matlab,t3];
end
  댓글 수: 2
Walter Roberson
Walter Roberson 2021년 9월 3일
There have been a number of performance improvements in MATLAB between R2016 and R2020b.
俊凯 王
俊凯 王 2021년 9월 3일
is there apply parallel computing like openmp or something else in 2020b knnsearch function?

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

채택된 답변

Walter Roberson
Walter Roberson 2021년 9월 3일
R2019a release notes specifically mention performance improvements for knnsearch .
  댓글 수: 5
俊凯 王
俊凯 王 2021년 9월 3일
i can't find detail reference in R2019a release notes ,could you show me the detail link ?

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by