[Numpy-discussion] linalg.norm missing an 'axis' kwarg?!

Hans Meine meine@informatik.uni-hamburg...
Tue Feb 10 08:02:39 CST 2009


On Tuesday 10 February 2009 11:11:38 Markus Rosenstihl wrote:
> i usually do something like this:
>
> a = random.rand(3000)
> a.resize((1000,3))
> vec_norms = sqrt(sum(a**2,axis=1))

If you look at the patch I posted (OK, that was some weeks ago, so I'll attach 
it again for your convenience), that's (more or less) exactly what I proposed.

Have a nice day,
  Hans
-------------- next part --------------
A non-text attachment was scrubbed...
Name: numpy_norm_axis.diff
Type: text/x-patch
Size: 1597 bytes
Desc: not available
Url : http://projects.scipy.org/pipermail/numpy-discussion/attachments/20090210/ae94f124/attachment.bin 


More information about the Numpy-discussion mailing list