Hello everyone, I am looking a way to speed up mean and std calculation on GPU. I run this code and it does take quite some time to complete, compared to the one if I do not use gpuArray. Maybe somebody would have any idea?
g_p is gpuArray with matrix of (1000000,5) for q=1:n1-d x2=g_p(d-w+q-1:d+q-2,:);mean_x=mean(x2); std_x=std(x2); R = bsxfun(@minus,x2,mean_x); x3=bsxfun(@rdivide,R,std_x) end ///////////or x3=arrayfun(@norm,x2)?
Best Answer