[Numpy-discussion] distance matrix and (weighted) p-norm

David Cournapeau david at ar.media.kyoto-u.ac.jp
Tue Sep 2 22:06:47 EDT 2008


Emanuele Olivetti wrote:
> Hi,
>
> I'm trying to compute the distance matrix (weighted p-norm [*])
> between two sets of vectors (data1 and data2). Example:
>   

You may want to look at scipy.cluster.distance, which has a bunch of
distance matrix implementation. I believe most of them have optional
compiled version, for fast execution.

cheers,

David



More information about the NumPy-Discussion mailing list