Re: [Numpy-discussion] ufunc void *extra

2009-08-22 Thread Robert Kern
On Sat, Aug 22, 2009 at 18:15, Marty Fuhry wrote: > The "Beyond the Basics" manual > (http://docs.scipy.org/doc/numpy/user/c-info.beyond-basics.html) > indicates that the generic ufunc loop (in this example loop1d) has a > void* extra (or void* data) argument that can be used to pass extra > data t

[Numpy-discussion] ufunc void *extra

2009-08-22 Thread Marty Fuhry
The "Beyond the Basics" manual (http://docs.scipy.org/doc/numpy/user/c-info.beyond-basics.html) indicates that the generic ufunc loop (in this example loop1d) has a void* extra (or void* data) argument that can be used to pass extra data to the ufunc, but it doesn't indicate how to use this argumen

Re: [Numpy-discussion] A better median function?

2009-08-22 Thread Chad Netzer
The good news is that it was trivial to adapt numpy/core/src/_sortmodule.c.src:quicksort() to do a quickselect(). When I'm back home I'll follow up with discussion on how (if it all) to expose this to numpy.median() or numpy in general. -Chad ___ NumPy-D

[Numpy-discussion] Sprinting at SciPy2009 today and tomorrow

2009-08-22 Thread Stéfan van der Walt
Hey everyone, The SciPy2009 sprints are underway, and you are welcome to take part! Topics include NumPy, SciPy, Mayavi, Traits, IPython, Documentation and the image processing toolbox. Join us on irc in channel #scipy, server irc.freenode.net. The timezone here is GMT-7, and we'll be around bot

[Numpy-discussion] Bug in NoseTester?

2009-08-22 Thread Skipper Seabold
I'm trying to define a function, so that I don't have to pass the extra_argv==["--exe"] manually to run the tests for my scikits package. To do so, I believe I need to define a function that calls Tester(package=string_of_fullpath).test(extra_argv=["--exe"]) In nosetester.NoseTester, the docstri

Re: [Numpy-discussion] Scipy09 Sprints

2009-08-22 Thread Nicolas Pinto
Gael is leaving now! On Saturday, August 22, 2009, John Schulman wrote: > For the numpy/scipyers at Caltech now: > I'm wondering what is happening with the scipy09 sprints. According to > the website, the sprints start at 8AM in Powell Booth, but that > building is locked and there's no sign of l

[Numpy-discussion] adaptive interpolation on a regular 2d grid

2009-08-22 Thread denis bzowy
Folks, here's a simple adaptive interpolator; drop me a line to chat about it adalin2( func, near, nx=300, ny=150, xstep=32, ystep=16, xrange=(0,1), yrange=(0,1), dtype=np.float, norm=abs ) Purpose: interpolate a function on a regular 2d grid: take func() where it changes ra

[Numpy-discussion] Scipy09 Sprints

2009-08-22 Thread John Schulman
For the numpy/scipyers at Caltech now: I'm wondering what is happening with the scipy09 sprints. According to the website, the sprints start at 8AM in Powell Booth, but that building is locked and there's no sign of life. Best, John ___ NumPy-Discussion m

[Numpy-discussion] masked arrays of structured arrays

2009-08-22 Thread Ernest Adrogué
Hi there, Here is a structured array with 3 fields each of which has 3 fields in turn: In [3]: desc = [('a',int), ('b',int), ('c',int)] In [4]: desc = [('x',desc), ('y',desc), ('z',desc)] With a regular ndarray it works just fine: In [11]: x = np.zeros(2, dtype=desc) In [12]: x['x']['b'] = 2