Euclidian Distances between points

Posted by R S on Stack Overflow See other posts from Stack Overflow or by R S
Published on 2010-03-20T13:05:11Z Indexed on 2010/03/20 13:11 UTC
Read the original article Hit count: 322

Filed under:
|
|

I have an array of points in numpy:

points = rand(dim, n_points)

And I want to:

  1. Calculate all the l2 norm (euclidian distance) between a certain point and all other points
  2. Calculate all pairwise distances.

and preferably all numpy and no for's.

© Stack Overflow or respective owner

Related posts about python

Related posts about numpy