[SciPy-User] Easy to make ufuncs from scalar Fortran function?
Fri Mar 5 15:02:28 CST 2010
John Salvatier skrev:
> Can anyone tell me if it is very difficult to make a numpy ufunc given a
> scalar function written in Fortran? I have read part of
> http://docs.scipy.org/doc/numpy/user/c-info.beyond-basics.html on
> creating ufuncs, is there anything else I should read?
I have never created ufuncs, but as the docs you point to seem very
c-oriented, I just wanted to make sure you know that calling fortran
from c is not too complicated (at least with gnu compilers).
If I would try, I would first wrap the fortran code in c, and then look
at how to create ufuncs from c-code, but I have no idea how to do the
A page that seems rather informative and that was suggested by a google
search on mixing c and fortran is
I hope it helps a bit, although it does not answer your question.
More information about the SciPy-User