Is there any way to do an arrayfun with a shared matrix in a gpuArray type?
In my case I wanted to make the sum of two or more columns of a gpuArray matrix, but i dont know how to implement in a gpuFunction, arrayfun is the best option?
I wanted to make this easy operation in a CUDA because I need to make a million of this kind of operations with the different combinations.
Thank you very much.
Im going to explain the problem better.If you see my problem is like that
functionarrayfun = @(row)functionMex(data1,data2,row );
i = 1:length(tablaCombinaciones(:,1));%from 1 to end of rows
ratio = arrayfun(functionarrayfun,i);
Error using gpuArray/arrayfun Indexing is not supported. error at line: 6
arrayfun,gpuArrayandgpuFunction, you could try to write your function directly inCUDA, compiling it withnvccand then linking it underMatlabas amex-file.