[Numpy-discussion] Fastest distance matrix calc

Sturla Molden sturla at molden.no
Tue Apr 17 10:12:01 EDT 2007


On 4/17/2007 3:57 PM, Matthieu Brucher wrote:

> Is there a function that does the square root of the sum of squares ?

hm ...

f = lambda x : sqrt(sum(x**2))



S.M.



More information about the NumPy-Discussion mailing list