[Numpy-discussion] linalg.norm missing an 'axis' kwarg?!
Hans Meine
meine at informatik.uni-hamburg.de
Mon Feb 9 07:23:39 EST 2009
On Thursday 20 November 2008 11:54:52 Hans Meine wrote:
> 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.
AFAICS, I never received an answer, but IMHO this should be integrated into
NumPy. Any objections?
Greetings,
Hans
More information about the NumPy-Discussion
mailing list