[Numpy-discussion] Efficient square distance computation

Ke Sun sunk.cs at gmail.com
Thu Oct 10 10:00:47 EDT 2013

> > > On a machine I had access to it took about 20 minutes.
> > How? I am using matrix multiplication (the same code as
> > http://stackoverflow.com/a/4856692) and it runs for around 18 hours.
> >
> >
> make sure you are using an optimized BLAS library.
> e.g. with openblas I could also do this size in about 100 seconds wall time
> (20 minutes cpu time).

I recompiled numpy+scipy with intel compiler and MKL. Now it takes 
around 2 MINUTES on my machine. Horay! Thanks!

Ke Sun

More information about the NumPy-Discussion mailing list