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

2013-03-04 Thread Paul Anton Letnes
On 24. feb. 2013, at 02:20, josef.p...@gmail.com wrote: > On Sat, Feb 23, 2013 at 3:33 PM, Robert Kern wrote: >> On Sat, Feb 23, 2013 at 7:25 PM, Nathaniel Smith wrote: >>> On Sat, Feb 23, 2013 at 3:38 PM, Till Stensitzki wrote: Hello, i know that the array object is already crowded,

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 wrote: > > On Sat, Feb 23, 2013 at 1:33 PM, Robert Kern wrote: >> >> On Sat, Feb 23, 2013 at 7:25 PM, Nathaniel Smith wrote: >> > On Sat, Feb 23, 2013 at 3:38 PM, Till Stensitzki >> > wrote: >> >> Hello, >> >> i know that the array object is al

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

2013-02-26 Thread Sebastian Berg
On Tue, 2013-02-26 at 11:16 +0100, Todd wrote: > On Tue, Feb 26, 2013 at 10:58 AM, Sebastian Berg > wrote: > On Mon, 2013-02-25 at 22:04 -0500, josef.p...@gmail.com wrote: > > On Mon, Feb 25, 2013 at 9:58 PM, > wrote: > > > On Mon, Feb 25, 2013 at 9:20 PM, Sebasti

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 wrote: > On Mon, 2013-02-25 at 22:04 -0500, josef.p...@gmail.com wrote: > > On Mon, Feb 25, 2013 at 9:58 PM, wrote: > > > On Mon, Feb 25, 2013 at 9:20 PM, Sebastian Berg > > > wrote: > > >> On Mon, 2013-02-25 at 10:50 -0500, Skipper Seabold wrot

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

2013-02-26 Thread Sebastian Berg
On Mon, 2013-02-25 at 22:04 -0500, josef.p...@gmail.com wrote: > On Mon, Feb 25, 2013 at 9:58 PM, wrote: > > On Mon, Feb 25, 2013 at 9:20 PM, Sebastian Berg > > wrote: > >> On Mon, 2013-02-25 at 10:50 -0500, Skipper Seabold wrote: > >>> On Mon, Feb 25, 2013 at 10:43 AM, Till Stensitzki > >>> wr

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-25 Thread josef . pktd
On Mon, Feb 25, 2013 at 9:58 PM, wrote: > On Mon, Feb 25, 2013 at 9:20 PM, Sebastian Berg > wrote: >> On Mon, 2013-02-25 at 10:50 -0500, Skipper Seabold wrote: >>> On Mon, Feb 25, 2013 at 10:43 AM, Till Stensitzki >>> wrote: >>> > >>> > First, sorry that i didnt search for an old thread, but be

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 wrote: > On Mon, 2013-02-25 at 10:50 -0500, Skipper Seabold wrote: >> On Mon, Feb 25, 2013 at 10:43 AM, Till Stensitzki >> wrote: >> > >> > First, sorry that i didnt search for an old thread, but because i >> disagree with >> > conclusion i would at

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 > 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)

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, wrote: > On Mon, Feb 25, 2013 at 7:11 PM, Charles R Harris > wrote: >> >> >> On Sat, Feb 23, 2013 at 1:33 PM, Robert Kern wrote: >>> >>> On Sat, Feb 23, 2013 at 7:25 PM, Nathaniel Smith wrote: >>> > On Sat, Feb 23, 2013 at 3:38 PM, Till Stensitzki >>> > wrote:

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 wrote: > > > On Sat, Feb 23, 2013 at 1:33 PM, Robert Kern wrote: >> >> On Sat, Feb 23, 2013 at 7:25 PM, Nathaniel Smith wrote: >> > On Sat, Feb 23, 2013 at 3:38 PM, Till Stensitzki >> > wrote: >> >> Hello, >> >> i know that the array object is a

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 wrote: > On Sat, Feb 23, 2013 at 7:25 PM, Nathaniel Smith wrote: > > On Sat, Feb 23, 2013 at 3:38 PM, Till Stensitzki > wrote: > >> Hello, > >> i know that the array object is already crowded, but i would like > >> to see the abs method added, especi

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

2013-02-25 Thread Charles R Harris
On Mon, Feb 25, 2013 at 8:50 AM, Skipper Seabold wrote: > On Mon, Feb 25, 2013 at 10:43 AM, Till Stensitzki > 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).

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 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, especially if

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 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 > where it is

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 e

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, wrote: > On Sat, Feb 23, 2013 at 3:33 PM, Robert Kern > wrote: > > On Sat, Feb 23, 2013 at 7:25 PM, Nathaniel Smith wrote: > >> On Sat, Feb 23, 2013 at 3:38 PM, Till Stensitzki > wrote: > >>> Hello, > >>> i know that the array object is already crowded, but i w

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 wrote: > On Sat, Feb 23, 2013 at 7:25 PM, Nathaniel Smith wrote: >> On Sat, Feb 23, 2013 at 3:38 PM, Till Stensitzki wrote: >>> Hello, >>> i know that the array object is already crowded, but i would like >>> to see the abs method added, especially do

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 wrote: > On Sat, Feb 23, 2013 at 3:38 PM, Till Stensitzki 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

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 wrote: > On Sat, Feb 23, 2013 at 3:38 PM, Till Stensitzki 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 muc

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 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 thi

[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 _