C=sparse(hang_combine,lie_combine,value_combine);
C_gpu=gpuArray(C);
f_gpu=gpuArray(f);
u_gpu=C_gpu\f_gpu;
code like this ,why is this slower than cpu ? in cpu,just u=C\f
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!