[Numpy-discussion] Adding .abs() method to the array object

Charles R Harris charlesr.harris at gmail.com
Sat Feb 23 15:05:54 EST 2013


On Sat, Feb 23, 2013 at 12:25 PM, Nathaniel Smith <njs at pobox.com> wrote:

> On Sat, Feb 23, 2013 at 3:38 PM, Till Stensitzki <mail.till at gmx.de> wrote:
> > Hello,
> > i know that the array object is already crowded, but i would like
> > to see the abs method added, especially doing work on the console.
> > Considering that many much less used functions are also implemented
> > as a method, i don't think adding one more would be problematic.
>
> My gut feeling is that we have too many methods on ndarray, not too
> few, but in any case, can you elaborate? What's the rationale for why
> np.abs(a) is so much harder than a.abs(), and why this function and
> not other unary functions?
>
>
IIRC, there was a long thread about adding 'abs' back around 1.0.3-1.1.0
with Travis against it ;) I don't feel strongly one way or the other.

Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20130223/66b22c09/attachment.html>


More information about the NumPy-Discussion mailing list