2

Although interoperability with Fortran could be realised by using LibraryLink (e.g., Linking FORTRAN with Librarylink), the approach is not so straight forward, in particular for those not familiar with C (such as me).

In comparison with LibraryLink, the numpy tool f2py provides a much easier way to generate Python modules from Fortran code given the users have basic knowledge of Fortran. In fact, the intermediate step of f2py also involves C code, which is similar as the LibraryLink approach.

As such, I'm wondering if it's possible for Mathematica to directly use f2py-generated files to create Mathematica functions?

sunt05
  • 4,367
  • 23
  • 34

0 Answers0