Re: [Numpy-discussion] bug or feature?

2007-02-08 Thread Robert Kern
[EMAIL PROTECTED] wrote: > Thank you to both of you for this explanatin. I'm coming from the fortran > world and so I never had to deal with this before... > > Sorry to have polluate the list for a stupid things No need to apologize. All programming systems take some getting-used-to at first bef

Re: [Numpy-discussion] bug or feature?

2007-02-08 Thread humufr
Thank you to both of you for this explanatin. I'm coming from the fortran world and so I never had to deal with this before... Sorry to have polluate the list for a stupid things Thanks again that clarify the problem Nicolas Le Thursday 08 February 2007 17:01:36 Travis Oliphant, vous avez é

Re: [Numpy-discussion] bug or feature?

2007-02-08 Thread Travis Oliphant
[EMAIL PROTECTED] wrote: >I have a big problem with numpy, numarray and Numeric (all version) > >If I'm using the script at the bottom, I obtain these results: > >var1 before function is [3 4 5] >var2 before function is 1 >var1 after function must be [3 4 5] is [ 9 12 15] <-- problem >v

Re: [Numpy-discussion] bug or feature?

2007-02-08 Thread Pierre GM
On Thursday 08 February 2007 16:21:09 [EMAIL PROTECTED] wrote: > > I'm very surprised by the line noted. I always thinking that the input > variable didn't change the variable itself outside the function. Except that in this particular case, you explicitly change the input array itself by using

[Numpy-discussion] bug or feature?

2007-02-08 Thread humufr
I have a big problem with numpy, numarray and Numeric (all version) If I'm using the script at the bottom, I obtain these results: var1 before function is [3 4 5] var2 before function is 1 var1 after function must be [3 4 5] is [ 9 12 15] <-- problem var2 after function must be 1 is 1

Re: [Numpy-discussion] Comparing x and x.view

2007-02-08 Thread Pierre GM
On Wednesday 07 February 2007 23:09:16 Travis Oliphant wrote: > > So, there's no real point in using the Python 'id' function ? Do we need > > a shortcut to __array_interface__['data'] as id number ? > > You have it (sort of a short-cut). > > .ctypes.data OK, great, thanks a lot On Wednesday 07 F

Re: [Numpy-discussion] Latest Array-Interface PEP

2007-02-08 Thread Michael McLay
On Thursday 04 January 2007 19:36, Travis Oliphant wrote: > Christopher Barker wrote: > > eople like: > > > > wxPython -- Robin Dunn > > PIL -- Fredrik Lundh > > PyOpenGL -- Who? > > PyObjC -- would it be useful there? (Ronald Oussoren) > > MatplotLib (but maybe it's already married to numpy..

Re: [Numpy-discussion] Comparing x and x.view

2007-02-08 Thread Christopher Barker
Pierre GM wrote: > I want to compare whether two arrays point to the same data. Travis just posted a note about a couple utility functions that may help: Travis Oliphant wrote: > In SVN there is a new function may_share_memory(a,b) which will return > True if the memory foot-print of the two ar

Re: [Numpy-discussion] getting indices for array positions

2007-02-08 Thread Christian Meesters
Hi Thanks for all your suggestions. Christian ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion