[Numpy-discussion] linalg.norm along axis?

Grissiom chaos.proton at gmail.com
Wed Feb 18 22:23:58 EST 2009


Hi all,

Is there any possibility to calculate norm along axis? For example:

a = np.array((
(3,4),
(6,8)))

And I want to get:
array([5.0, 10.0])

I currently use a for loop to achieve this, Is there any more elegant way to
do this?

-- 
Cheers,
Grissiom
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20090219/dc401fa2/attachment.html>


More information about the NumPy-Discussion mailing list