Re: [Numpy-discussion] Bug in as_strided/reshape

2012-08-10 Thread Dave Hirschfeld
Sebastian Berg sebastian at sipsolutions.net writes: Hello, looking at the code, when only adding/removing dimensions with size 1, numpy takes a small shortcut, however it uses 0 stride lengths as value for the new one element dimensions temporarily, then replacing it again to ensure the

[Numpy-discussion] Second try: possible bug in assignment to complex array

2012-08-10 Thread Mark Bakker
I am giving this a second try. Can anybody help me out? I think there is a problem with assigning a 1D complex array of length one to a position in another complex array. Example: a = ones(1,'D') b = ones(1,'D') a[0] = b

Re: [Numpy-discussion] Second try: possible bug in assignment to complex array

2012-08-10 Thread Dave Hirschfeld
Mark Bakker markbak at gmail.com writes: I think there is a problem with assigning a 1D complex array of length one to a position in another complex array. Example: a = ones(1,'D') b = ones(1,'D') a[0] = b ---

Re: [Numpy-discussion] Second try: possible bug in assignment to complex array

2012-08-10 Thread Fabrice Silva
Le vendredi 10 août 2012, Dave Hirschfeld a écrit : Mark Bakker markbak at gmail.com writes: I think there is a problem with assigning a 1D complex array of length one to a position in another complex array. Example: a = ones(1,'D') b = ones(1,'D') a[0] = b

Re: [Numpy-discussion] Second try: possible bug in assignment to complex array

2012-08-10 Thread Paul Anton Letnes
On 10. aug. 2012, at 09:54, Mark Bakker wrote: I am giving this a second try. Can anybody help me out? I think there is a problem with assigning a 1D complex array of length one to a position in another complex array. Example: a = ones(1,'D') b = ones(1,'D') a[0] = b

Re: [Numpy-discussion] Second try: possible bug in assignment to complex array

2012-08-10 Thread Travis Oliphant
On Aug 10, 2012, at 5:37 AM, Paul Anton Letnes wrote: On 10. aug. 2012, at 09:54, Mark Bakker wrote: I am giving this a second try. Can anybody help me out? I think there is a problem with assigning a 1D complex array of length one to a position in another complex array. Example:

Re: [Numpy-discussion] Second try: possible bug in assignment to complex array

2012-08-10 Thread josef . pktd
On Fri, Aug 10, 2012 at 10:00 AM, Travis Oliphant tra...@continuum.iowrote: On Aug 10, 2012, at 5:37 AM, Paul Anton Letnes wrote: On 10. aug. 2012, at 09:54, Mark Bakker wrote: I am giving this a second try. Can anybody help me out? I think there is a problem with assigning a 1D

Re: [Numpy-discussion] Second try: possible bug in assignment to complex array

2012-08-10 Thread josef . pktd
On Fri, Aug 10, 2012 at 11:41 AM, josef.p...@gmail.com wrote: On Fri, Aug 10, 2012 at 10:00 AM, Travis Oliphant tra...@continuum.iowrote: On Aug 10, 2012, at 5:37 AM, Paul Anton Letnes wrote: On 10. aug. 2012, at 09:54, Mark Bakker wrote: I am giving this a second try. Can