On Thursday 20 November 2008 11:11:14 Hans Meine 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?
Here's a basic implementation. docstring + tests not updated yet, also I wonder whether axis should be the first argument, but that could create compatibility problems.