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 件のコメント
採用された回答
Edric Ellis
2012 年 4 月 27 日
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.
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!