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

Alan G Isaac aisaac at american.edu
Thu Nov 20 09:19:51 EST 2008


On 11/20/2008 5:11 AM Hans Meine apparently wrote:
> I have a 2D matrix comprising a sequence of vectors, and I want to compute the 
> norm of each vector.  np.linalg.norm seems to be the best bet, but it does not 
> support axis.  Wouldn't this be a nice feature?

Of possible use until then:
http://docs.scipy.org/doc/numpy/reference/generated/numpy.apply_along_axis.html
Alan Isaac




More information about the NumPy-Discussion mailing list