I have 2 ndarrays of (n_samples, n_dimensions) and I want for each pair of corresponding rows, so the output would be (n_samples, )
Using sklearn's implementation I get (n_samples, n_samples) result - which obviously makes a lot of irrelevant calculations which is unacceptable in my case.
Using 1 - scipy's implementation is impossible because it expects vectors and not matrices.
What would be the most efficient way to execute what I'm looking for?