Embedding a Numeric array in C
Fernando PĂ©rez
fperez528 at yahoo.com
Mon May 20 19:55:39 EDT 2002
Chris Fonnesbeck wrote:
> I am trying to find out how to properly embed a Numeric array type in
> C. The following code compiles, but segfaults when run:
>
Don't sweat it. Use weave (http://scipy.org) with blitz if you can. It's far
easier than writing your own typemaps correctly (a non-trivial task), and
will probably be enough in 90% of the cases.
At http://www-hep.colorado.edu/~fperez/python/python-c/ you'll find some
examples of weave use with Numeric arrays to get you started.
Cheers,
f.
More information about the Python-list
mailing list