In general, arrayfun allows you to speed up cases where you have lots of elementwise operations to perform. You need to look inside the 'leadlag' function to try and find places where arrayfun can be applied.
how to use arrayfun for gpu
2 次查看(过去 30 天)
显示 更早的评论
Hi there, I am calling a function which is a sample used from a matlabs webinar:
for n = 1:100
for m = n:100
[~,~,sh(n,m)] = leadlag(Close,n,m,annualScaling, 0.0006);
end
end
How do I alter this so that gpu is using arrarfun to speed it up?
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 GPU Computing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!