function dists = compute_distances(obj,X)
for i = 1:num_test
for j =1:num_train
My CPU code executed in 5 mins.
The GPU code executed in 25mins.
I am trying to calculate the distance, but I noticed that I can use gpuArray to improve the speed.
I have no idea why it doesn't work.