[Numpy-discussion] Access to C/C++, typemaps, pyrex...
Francesc Altet
faltet at carabos.com
Thu Mar 23 11:48:02 EST 2006
A Dijous 23 Març 2006 20:40, Christopher Barker va escriure:
> > I don't think this is feasible yet,
>
> um, why not?
For no particular reason, except my ignorance ;-)
> The goal here is to be able to write code that can be compiled without
> the presence of numpy, or Numeric, or numarray. Indeed, no additional
> dependencies, but that can still efficiently use array objects passed in.
>
> My classic example is wxPython. Robin doesn't want any dependencies on
> other packages, so at the moment, when you pass a numpy array in, it
> uses python's generic sequence access to get the values, then ends up
> converting them to a plain old C array. This is a lot of unnecessary
> processing, as you can imagine.
>
> I think it can be done, and one of these days I'll figure out how, but
> I'd love to see an example from someone who understands these things
> more than myself.
Yeah, I understand you perfectly well :-)
> Do you mean the Pyrex section in the SciPy cookbook? I can't find a
> Pyrex cookbook.
I think the referred page is here:
http://scipy.org/Cookbook/ArrayStruct_and_Pyrex
--
>0,0< Francesc Altet http://www.carabos.com/
V V Cárabos Coop. V. Enjoy Data
"-"
More information about the NumPy-Discussion
mailing list