Re: [Numpy-discussion] Functions vs Methods

2011-12-28 Thread Robert Kern
On Wed, Dec 28, 2011 at 06:39, Jaidev Deshpande wrote: > Hi > > It is said that function calls are expensive. Does that mean one must > use available methods instead? For the most part, it usually doesn't matter enough to care about. Whether you use the methods or the functions should be dominate

Re: [Numpy-discussion] Functions vs Methods

2011-12-27 Thread Gael Varoquaux
Hi Jaidev, On Wed, Dec 28, 2011 at 12:09:45PM +0530, Jaidev Deshpande wrote: > Eg. x is a NumPy array, and I need its transpose > Should I use > >>> x.T > or > >>> numpy.transpose(T) ? If you are wondering for a timing reason, use IPython's '%timeit' magic to figure out if it does make a di

[Numpy-discussion] Functions vs Methods

2011-12-27 Thread Jaidev Deshpande
Hi It is said that function calls are expensive. Does that mean one must use available methods instead? Eg. x is a NumPy array, and I need its transpose Should I use >>> x.T or >>> numpy.transpose(T) ? Does it matter which one I'm using ? If not, under what conditions does it become import

Re: [Numpy-discussion] functions vs. methods

2007-01-08 Thread Sebastian Haase
On 1/8/07, Travis Oliphant <[EMAIL PROTECTED]> wrote: > Alan G Isaac wrote: > > >On Mon, 8 Jan 2007, Sebastian Haase apparently wrote: > > > > > >>Please explain again what the original decision was based > >>on. > >> > >> > > > >I think the real questions are: > >what do the numpy developers want

Re: [Numpy-discussion] functions vs. methods

2007-01-08 Thread Travis Oliphant
Alan G Isaac wrote: >On Mon, 8 Jan 2007, Sebastian Haase apparently wrote: > > >>Please explain again what the original decision was based >>on. >> >> > >I think the real questions are: >what do the numpy developers want in the future, >and what is the right path from here to there? > >

Re: [Numpy-discussion] functions vs. methods

2007-01-08 Thread Alan G Isaac
On Mon, 8 Jan 2007, Sebastian Haase apparently wrote: > Please explain again what the original decision was based > on. I think the real questions are: what do the numpy developers want in the future, and what is the right path from here to there? > I remember that there was an effort at some