How to concatenate on GPU with arrayfun?
조회 수: 8 (최근 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!