Re: [Numpy-discussion] setmember1d memory leak?

2007-01-22 Thread Robert Kern
Jan Strube wrote: > I would also like to see a method that doesn't have the unique members > requirement. > If setmember1d cannot be modified to do that, is there another method > that doesn't have these restrictions. Or could one be added? If you can write one that's reasonably efficient, yes. -

Re: [Numpy-discussion] setmember1d memory leak?

2007-01-22 Thread Jan Strube
I would also like to see a method that doesn't have the unique members requirement. If setmember1d cannot be modified to do that, is there another method that doesn't have these restrictions. Or could one be added? Thanks, Jan ___ Numpy-discussion mai

Re: [Numpy-discussion] Misc Pyrex questions

2007-01-22 Thread Pierre GM
On Monday 22 January 2007 11:18, Francesc Altet wrote: > You should first inform to Pyrex about the definition of ndarray. For > this, it's only necessary to declare this in a file (say > definitions.pxd): > from now on, Pyrex knows about the ndarray object and you should be able > to derive a cla

[Numpy-discussion] added 1.0.1 release notes to wiki

2007-01-22 Thread Martin Spacek
Just a note that I've copied over the 1.0.1 release notes from SourceForge: http://sourceforge.net/project/shownotes.php?group_id=1369&release_id=468153 over to the wiki: http://scipy.org/ReleaseNotes/NumPy_1.0 Should 1.0.1 get its own page, as previous 0.9.x releases did? Martin _

Re: [Numpy-discussion] setmember1d memory leak?

2007-01-22 Thread Robert Kern
Per B. Sederberg wrote: > So the next question is what changed to fix that bug? It looks like the only > difference in the code is that the call to argsort now has (kind='mergesort'). Possibly the default sort code had a bug that was fixed, too, or something deep in the array object. I've rerun

Re: [Numpy-discussion] setmember1d memory leak?

2007-01-22 Thread Per B . Sederberg
Robert Kern gmail.com> writes: > > Per B. Sederberg wrote: > > Does anyone have any idea of what might be occurring in setmember1d in > > combination with this setup that would cause such a massive memory leak? > > Can you check out numpy from SVN and see if you can reproduce the leak? > I do

Re: [Numpy-discussion] setmember1d memory leak?

2007-01-22 Thread Robert Kern
Per B. Sederberg wrote: > Does anyone have any idea of what might be occurring in setmember1d in > combination with this setup that would cause such a massive memory leak? Can you check out numpy from SVN and see if you can reproduce the leak? I do not see a leak with a recent checkout on OS X wit

[Numpy-discussion] setmember1d memory leak?

2007-01-22 Thread Per B . Sederberg
Hi Everybody: I was having a massive memory leak problem in some simulations I coded that I traced down to the setmember1d method. After running for about an hour, my program, which should have been taking up .6% of the RAM was taking up 100% of my 4GB of RAM and would eventually get killed by th

[Numpy-discussion] array is not broadcastable to correct shape

2007-01-22 Thread Keith Goodman
What is the simplest way to make the sum of the positive elements in a Nx1 matrix equal 1? I end up converting the matrix to an array, doing the normalization, then converting the array back to a matrix. >> m = M.randn(10,1) >> m[m > 0,:] = m[m > 0,:] / m[m > 0,:].sum() --

Re: [Numpy-discussion] Misc Pyrex questions

2007-01-22 Thread Francesc Altet
El dl 22 de 01 del 2007 a les 10:07 -0500, en/na Pierre GM va escriure: > Dear All, > I started playing with Pyrex this week-end, to see how easy it would be to > port some subclasses to C. A good thing is that it's not as bad as I was > dreading. I do have a lot of question, however: > > - Can

[Numpy-discussion] Misc Pyrex questions

2007-01-22 Thread Pierre GM
Dear All, I started playing with Pyrex this week-end, to see how easy it would be to port some subclasses to C. A good thing is that it's not as bad as I was dreading. I do have a lot of question, however: - Can I create a subclass w/ Pyrex ? If yes, how ? I haven't been able to find any exampl

[Numpy-discussion] f2py

2007-01-22 Thread Sturla Molden
I have a question regarding f2py: Can it map NumPy arrays to Fortran 95 'dope vectors'? I can find many examples on interfacing Fortran 77 with NumPy, but not Fortran 95. This is of course very different as Fortran 77 are always contiguous, whereas Fortran 95 arrays are not. Thus a Fortran 95 c

[Numpy-discussion] gcc vs Intel compiler

2007-01-22 Thread rex
Has anyone done any benchmarks to compare Numpy's speed with these two compilers on a Core 2 Duo? Thanks, -rex ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion