How to concatenate on GPU with arrayfun?

3 ビュー (過去 30 日間)
Srivatsank Pullabhotla
Srivatsank Pullabhotla 2020 年 6 月 3 日
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 件)

カテゴリ

Help Center および File ExchangeNumerical Integration and Differentiation についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by