[Numpy-discussion] Memory leak with matrices?

2010-03-09 Thread David Paul Reichert
Hi, I've got two issues: First, the following seems to cause a memory leak, using numpy 1.3.0: a = matrix(ones(1)) while True: a += 0 This only seems to happen when a is a matrix rather than an array, and when the short hand '+=' is used. Second, I'm not sure whether that's a bug or whet

Re: [Numpy-discussion] Memory leak with matrices?

2010-03-09 Thread josef . pktd
On Tue, Mar 9, 2010 at 12:31 PM, David Paul Reichert wrote: > Hi, > > I've got two issues: > > First, the following seems to cause a memory leak, > using numpy 1.3.0: > > a = matrix(ones(1)) > > while True: >    a += 0 > > > This only seems to happen when a is a matrix rather > than an array, and

Re: [Numpy-discussion] Memory leak with matrices?

2010-03-09 Thread David Reichert
Thanks for the reply. Yes never mind the second issue, I had myself confused there. Any comments on the memory leak? On Tue, Mar 9, 2010 at 5:55 PM, wrote: > On Tue, Mar 9, 2010 at 12:31 PM, David Paul Reichert > wrote: > > Hi, > > > > I've got two issues: > > > > First, the following seems t

Re: [Numpy-discussion] Memory leak with matrices?

2010-03-09 Thread Robert Kern
On Tue, Mar 9, 2010 at 11:31, David Paul Reichert wrote: > Hi, > > I've got two issues: > > First, the following seems to cause a memory leak, > using numpy 1.3.0: > > a = matrix(ones(1)) > > while True: >    a += 0 > > > This only seems to happen when a is a matrix rather > than an array, and whe

Re: [Numpy-discussion] Memory leak with matrices?

2010-03-09 Thread josef . pktd
On Tue, Mar 9, 2010 at 1:28 PM, Robert Kern wrote: > On Tue, Mar 9, 2010 at 11:31, David Paul Reichert > wrote: >> Hi, >> >> I've got two issues: >> >> First, the following seems to cause a memory leak, >> using numpy 1.3.0: >> >> a = matrix(ones(1)) >> >> while True: >>    a += 0 >> >> >> This o