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
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
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
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
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
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
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
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
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