Efficiently Calculating a Euclidean Distance Matrix Using Numpy
I have a set of points in 2-dimensional space and need to calculate the distance from each point to each other point.
I have a set of points in 2-dimensional space and need to calculate the distance from each point to each other point.
I want to be able to iterate over the matrix to apply a function to each row. How can I do it for a Numpy matrix ?