How to concatenate on GPU with arrayfun?
3 ビュー (過去 30 日間)
古いコメントを表示
Hello, I have a function which I'm going to use with arrayfun to compress the code. Since the number of points to evaluate are high, I'm planning to use my GPU for the same. I am running into issues with concatenation. The function is as follows:
function s = probab(X,Y,Z)
load net2.mat
load Texp.mat
sigma = 0.35;
B = [X Y Z]';
T=net2(B);
[T, Texp] = clean(T,Texp);
A=(T-Texp).*(T-Texp);
S = sum(A);
s = exp(-S/(2*sigma^2));
end
I plan to integrate this later using trapz.
0 件のコメント
回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!