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

2013-02-26 Thread Pierre Haessig
Hi, Le 23/02/2013 20:25, Nathaniel Smith a écrit : 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? (Just

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

2013-02-26 Thread Todd
On Tue, Feb 26, 2013 at 10:58 AM, Sebastian Berg sebast...@sipsolutions.net wrote: On Mon, 2013-02-25 at 22:04 -0500, josef.p...@gmail.com wrote: On Mon, Feb 25, 2013 at 9:58 PM, josef.p...@gmail.com wrote: On Mon, Feb 25, 2013 at 9:20 PM, Sebastian Berg sebast...@sipsolutions.net

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

2013-02-26 Thread Robert Kern
On Tue, Feb 26, 2013 at 12:11 AM, Charles R Harris charlesr.har...@gmail.com wrote: On Sat, Feb 23, 2013 at 1:33 PM, Robert Kern robert.k...@gmail.com wrote: On Sat, Feb 23, 2013 at 7:25 PM, Nathaniel Smith n...@pobox.com wrote: On Sat, Feb 23, 2013 at 3:38 PM, Till Stensitzki

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

2013-02-25 Thread Till Stensitzki
First, sorry that i didnt search for an old thread, but because i disagree with conclusion i would at least address my reason: I don't like np.abs(arr).max() because I have to concentrate to much on the braces, especially if arr is a calculation This exactly, adding an abs into an old

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

2013-02-25 Thread Frédéric Bastien
On Sat, Feb 23, 2013 at 9:34 PM, Benjamin Root ben.r...@ou.edu wrote: My issue is having to remember which ones are methods and which ones are functions. There doesn't seem to be a rhyme or reason for the choices, and I would rather like to see that a line is drawn, but I am not picky as to

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

2013-02-25 Thread Skipper Seabold
On Mon, Feb 25, 2013 at 10:43 AM, Till Stensitzki mail.t...@gmx.de wrote: First, sorry that i didnt search for an old thread, but because i disagree with conclusion i would at least address my reason: I don't like np.abs(arr).max() because I have to concentrate to much on the braces,

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

2013-02-25 Thread Charles R Harris
On Sat, Feb 23, 2013 at 1:33 PM, Robert Kern robert.k...@gmail.com wrote: On Sat, Feb 23, 2013 at 7:25 PM, Nathaniel Smith n...@pobox.com wrote: On Sat, Feb 23, 2013 at 3:38 PM, Till Stensitzki mail.t...@gmx.de wrote: Hello, i know that the array object is already crowded, but i would

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

2013-02-25 Thread josef . pktd
On Mon, Feb 25, 2013 at 7:11 PM, Charles R Harris charlesr.har...@gmail.com wrote: On Sat, Feb 23, 2013 at 1:33 PM, Robert Kern robert.k...@gmail.com wrote: On Sat, Feb 23, 2013 at 7:25 PM, Nathaniel Smith n...@pobox.com wrote: On Sat, Feb 23, 2013 at 3:38 PM, Till Stensitzki

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

2013-02-25 Thread josef . pktd
On Mon, Feb 25, 2013 at 7:49 PM, josef.p...@gmail.com wrote: On Mon, Feb 25, 2013 at 7:11 PM, Charles R Harris charlesr.har...@gmail.com wrote: On Sat, Feb 23, 2013 at 1:33 PM, Robert Kern robert.k...@gmail.com wrote: On Sat, Feb 23, 2013 at 7:25 PM, Nathaniel Smith n...@pobox.com wrote:

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

2013-02-25 Thread Sebastian Berg
On Mon, 2013-02-25 at 10:50 -0500, Skipper Seabold wrote: On Mon, Feb 25, 2013 at 10:43 AM, Till Stensitzki mail.t...@gmx.de wrote: First, sorry that i didnt search for an old thread, but because i disagree with conclusion i would at least address my reason: I don't like

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

2013-02-25 Thread josef . pktd
On Mon, Feb 25, 2013 at 9:20 PM, Sebastian Berg sebast...@sipsolutions.net wrote: On Mon, 2013-02-25 at 10:50 -0500, Skipper Seabold wrote: On Mon, Feb 25, 2013 at 10:43 AM, Till Stensitzki mail.t...@gmx.de wrote: First, sorry that i didnt search for an old thread, but because i disagree

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

2013-02-25 Thread josef . pktd
On Mon, Feb 25, 2013 at 9:58 PM, josef.p...@gmail.com wrote: On Mon, Feb 25, 2013 at 9:20 PM, Sebastian Berg sebast...@sipsolutions.net wrote: On Mon, 2013-02-25 at 10:50 -0500, Skipper Seabold wrote: On Mon, Feb 25, 2013 at 10:43 AM, Till Stensitzki mail.t...@gmx.de wrote: First, sorry

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

2013-02-23 Thread Till Stensitzki
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. greetings Till

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

2013-02-23 Thread Nathaniel Smith
On Sat, Feb 23, 2013 at 3:38 PM, Till Stensitzki mail.t...@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,

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

2013-02-23 Thread Charles R Harris
On Sat, Feb 23, 2013 at 12:25 PM, Nathaniel Smith n...@pobox.com wrote: On Sat, Feb 23, 2013 at 3:38 PM, Till Stensitzki mail.t...@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.

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

2013-02-23 Thread Robert Kern
On Sat, Feb 23, 2013 at 7:25 PM, Nathaniel Smith n...@pobox.com wrote: On Sat, Feb 23, 2013 at 3:38 PM, Till Stensitzki mail.t...@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.

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

2013-02-23 Thread josef . pktd
On Sat, Feb 23, 2013 at 3:33 PM, Robert Kern robert.k...@gmail.com wrote: On Sat, Feb 23, 2013 at 7:25 PM, Nathaniel Smith n...@pobox.com wrote: On Sat, Feb 23, 2013 at 3:38 PM, Till Stensitzki mail.t...@gmx.de wrote: Hello, i know that the array object is already crowded, but i would like to

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

2013-02-23 Thread Benjamin Root
On Sat, Feb 23, 2013 at 8:20 PM, josef.p...@gmail.com wrote: On Sat, Feb 23, 2013 at 3:33 PM, Robert Kern robert.k...@gmail.com wrote: On Sat, Feb 23, 2013 at 7:25 PM, Nathaniel Smith n...@pobox.com wrote: On Sat, Feb 23, 2013 at 3:38 PM, Till Stensitzki mail.t...@gmx.de wrote: Hello,