How to concatenate on GPU with arrayfun?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (0)
Siehe auch
Kategorien
Mehr zu Numerical Integration and Differentiation finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!