[Numpy-discussion] linalg.norm along axis?

Grissiom chaos.proton@gmail....
Wed Feb 18 21:23:58 CST 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://projects.scipy.org/pipermail/numpy-discussion/attachments/20090219/dc401fa2/attachment.html 


More information about the Numpy-discussion mailing list