Grissiom,
Using the following doesn't require any loop:
In [9]: sqrt((a**2.).sum(1))
Out[9]: array([ 5., 10.])
Best,
On Wed, Feb 18, 2009 at 10:23 PM, Grissiom chaos.pro...@gmail.com wrote:
Hi all,
Is there any possibility to calculate norm along axis? For example:
a = np.array((
On Thu, Feb 19, 2009 at 12:12, Nicolas Pinto pi...@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
___