Re: [Numpy-discussion] Should arr.diagonal() return a copy or a view? (1.7 compatibility issue)

2012-05-24 Thread Luis Pedro Coelho
On one of my papers, we put up the code online. Years afterwards, I still get emails every six months or so because the version of the code which was used for the paper now returns the wrong result! The problem is that it was written for the old histogram and, although I have a new version of the

Re: [Numpy-discussion] question about in-place operations

2012-05-24 Thread Francesc Alted
On 5/22/12 9:08 PM, Massimo Di Pierro wrote: This problem is linear so probably Ram IO bound. I do not think I would benefit much for multiple cores. But I will give it a try. In the short term this is good enough for me. Yeah, this what common sense seems to indicate, that RAM IO bound

[Numpy-discussion] Some numpy funcs for PyPy

2012-05-24 Thread Dmitrey
hi all, maybe you're aware of numpypy - numpy port for pypy (pypy.org) - Python language implementation with dynamic compilation. Unfortunately, numpypy developmnent is very slow due to strict quality standards and some other issues, so for my purposes I have provided some missing numpypy

Re: [Numpy-discussion] [SciPy-User] Some numpy funcs for PyPy

2012-05-24 Thread Flavio Coelho
That's very usefull! I hope these features get included upstream in the next release of numpypy. thanks, Flávio On Thu, May 24, 2012 at 8:32 AM, Dmitrey tm...@ukr.net wrote: hi all, maybe you're aware of numpypy - numpy port for pypy (pypy.org) - Python language implementation with dynamic

Re: [Numpy-discussion] Some numpy funcs for PyPy

2012-05-24 Thread Peter
On Thu, May 24, 2012 at 12:32 PM, Dmitrey tm...@ukr.net wrote: hi all, maybe you're aware of numpypy - numpy port for pypy (pypy.org) - Python language implementation with dynamic compilation. Unfortunately, numpypy developmnent is very slow due to strict quality standards and some other

Re: [Numpy-discussion] Some numpy funcs for PyPy

2012-05-24 Thread Dmitrey
On your website you wrote: From my (Dmitrey) point of view numpypy development is very unfriendly for newcomers - PyPy developers say provide code, preferably in interpreter level instead of AppLevel, provide whole test coverage for all possible corner cases, provide hg diff for code,

Re: [Numpy-discussion] Some numpy funcs for PyPy

2012-05-24 Thread Peter
On Thu, May 24, 2012 at 2:07 PM, Dmitrey tm...@ukr.net wrote: I had been subsribed IIRC for a couple of months I don't follow the PyPy IRC so that would explain it. I don't know how much they use that rather than their mailing list, but both seem a better place to discuss their handling or

[Numpy-discussion] Checking for views (was: Should arr.diagonal() return a copy or aview?)

2012-05-24 Thread Jonathan T. Niehof
On 05/23/2012 05:31 PM, T J wrote: It seems that there are a number of ways to check if an array is a view. Do we have a preferred way in the API that is guaranteed to stay available? Or are all of the various methods here to stay? We've settled on checking array.base, which I think was the

Re: [Numpy-discussion] Checking for views (was: Should arr.diagonal() return a copy or aview?)

2012-05-24 Thread Benjamin Root
On Thu, May 24, 2012 at 10:56 AM, Jonathan T. Niehof jnie...@lanl.govwrote: On 05/23/2012 05:31 PM, T J wrote: It seems that there are a number of ways to check if an array is a view. Do we have a preferred way in the API that is guaranteed to stay available? Or are all of the various

Re: [Numpy-discussion] Checking for views (was: Should arr.diagonal() return a copy or aview?)

2012-05-24 Thread Nathaniel Smith
On Thu, May 24, 2012 at 3:56 PM, Jonathan T. Niehof jnie...@lanl.gov wrote: On 05/23/2012 05:31 PM, T J wrote: It seems that there are a number of ways to check if an array is a view. Do we have a preferred way in the API that is guaranteed to stay available? Or are all of the various methods

Re: [Numpy-discussion] Checking for views (was: Should arr.diagonal() return a copy or aview?)

2012-05-24 Thread Robert Kern
On Thu, May 24, 2012 at 4:10 PM, Nathaniel Smith n...@pobox.com wrote: On Thu, May 24, 2012 at 3:56 PM, Jonathan T. Niehof jnie...@lanl.gov wrote: On 05/23/2012 05:31 PM, T J wrote: It seems that there are a number of ways to check if an array is a view. Do we have a preferred way in the API

Re: [Numpy-discussion] Checking for views (was: Should arr.diagonal() return a copy or aview?)

2012-05-24 Thread Larsen, Brian A
This is the stack overflow discussion mentioned. http://stackoverflow.com/questions/9164269/can-you-tell-if-an-array-is-a-view-of-another I basically implemented the answer from SO. I feel like the is gives you a good handle on things since to be true they are actually the same location in

Re: [Numpy-discussion] Checking for views (was: Should arr.diagonal() return a copy or aview?)

2012-05-24 Thread Nathaniel Smith
On Thu, May 24, 2012 at 6:07 PM, Larsen, Brian A balar...@lanl.gov wrote: This is the stack overflow discussion mentioned. http://stackoverflow.com/questions/9164269/can-you-tell-if-an-array-is-a-view-of-another I basically implemented the answer from SO.  I feel like the is gives you a good

Re: [Numpy-discussion] Checking for views (was: Should arr.diagonal() return a copy or aview?)

2012-05-24 Thread josef . pktd
On Thu, May 24, 2012 at 1:59 PM, Nathaniel Smith n...@pobox.com wrote: On Thu, May 24, 2012 at 6:07 PM, Larsen, Brian A balar...@lanl.gov wrote: This is the stack overflow discussion mentioned. http://stackoverflow.com/questions/9164269/can-you-tell-if-an-array-is-a-view-of-another I

Re: [Numpy-discussion] Fwd: Named dtype array: Difference between a[0]['name'] and a['name'][0]?

2012-05-24 Thread diehose
thanks a lot. I updated the question on stackoverflow and opened a ticket http://projects.scipy.org/numpy/ticket/2139 björn Am Montag, 21. Mai 2012, 15:37:36 schrieb Travis Oliphant: This is the right place to ask, it's just that it can take time to get an answer because people who might