[f2py] wrapping C/C++
Burlen
burlen at apollo.sr.unh.edu
Mon Feb 28 21:38:05 EET 2005
Thanks Christian,
the f2py docs talk a bit about C signatures, Maybe I was being a bit
optimistic thinking that this implied f2py could wrap c as well!!
I don't want to use scipy since I don't want the end users of this package to
have to go through the scipy install.
I have been using swig, however f2py and numeric work so well for translating
the fortran routines I have, if it works at all on c then f2py would be my
preference.
thanks again
burlen
On Monday 28 February 2005 13:28, Christian Kristukat wrote:
> On Mon, 28 Feb 2005, Burlen wrote:
> > Hi, I want to wrap c++ code with f2py, because I need to pass
> > multidimensional arrays between python and c and I like the Numeric
> > arrays in python.
> >
> > Does any one have a how to? or some simple example?
>
> I don't know if that can be achieved with f2py. Isn't it for wrapping
> fortran only? But you could try scipy.weave. I'm using it quite a lot. You
> can easily have inline C/C++ code in the python source.
> There's a very good overview at
>
> http://www.scipy.org/documentation/weave/weaveperformance.html
>
> Regards, Christian
>
> Christian Kristukat ::
> Institut fuer Festkoerperphysik, TU Berlin ======
> kristukat at physik.tu-berlin.de ||||||
> Tel. +49-30-31422083, FAX +49-30-31427705 --------
>
>
> _______________________________________________
> f2py-users mailing list
> f2py-users at cens.ioc.ee
> http://cens.ioc.ee/mailman/listinfo/f2py-users
More information about the f2py-users
mailing list