I am looking for the fastest implementation of pairwise distance between two sets of vectors (two 2D arrays) in c++/python.
What have I done? I ran the code from here on my server. In python, I found that the pairwise distance function from scikit learn and cdist from scipy.special.distance have fastest pairwise distance implementation.
Question: Calculating pairwise distance is the major bottleneck of my program. Thus, I wanted to know if one compute pairwise distance faster if coded purely in C++ (given that a most of the underlying code in scikit-learn, scipy is in C++ )?