[Numpy-discussion] linalg.norm along axis?

Grissiom chaos.proton@gmail....
Wed Feb 18 23:31:09 CST 2009


On Thu, Feb 19, 2009 at 12:12, Nicolas Pinto <pinto@mit.edu> wrote:

> Grissiom,
>
> Using the following doesn't require any loop:
>
> In [9]: sqrt((a**2.).sum(1))
> Out[9]: array([  5.,  10.])
>
> Best,
>
>
Got it~ Thanks really ;)

-- 
Cheers,
Grissiom
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/numpy-discussion/attachments/20090219/1d50fc27/attachment.html 


More information about the Numpy-discussion mailing list