Pairwise Distance in NumPy

Ben Cook • Posted 2020-06-01 • Last updated 2021-10-15

You can do vectorized pairwise distance calculations in NumPy (without using SciPy). This lets you extend pairwise computations to other kinds of functions.