The code above defines fortran modules that are used by another module photdyn_model with use statements like use photdynh. After wrapping the modul ...
The code above defines fortran modules that are used by another module photdyn_model with use statements like use photdynh. After wrapping the modul ...
I'm using Intel OneAPI & f2py to biuld a python module. I already have the module named <module name>.cp310-win_amd64.pyd. When I use import ...
I have finally managed to wrap some Fortran into Python using numpy's f2py. I am going to need to write a small library of subroutines that I can then ...
I have a Makefile that is using f2py to compile a FORTRAN code for Python, but it is giving me error 127 because it can't find f2py. However, it is ab ...
I am trying to compile a piece of old Fortran code with f2py so that it can be called within Python. However, there is a part involving external funct ...
I have a file write in big-endian format. I wrote a library to access this file. Now I try to use this library to access this file inside a python scr ...
Following program compiles(in f2py) when the subroutine doesn't contain any internal procedures but fails to compile in f2py (compiles with gfortran) ...
I have the following test library written in C, one function allocates an array and the other one is intended to free that memory. Note that the retur ...
I want to specify as type of a subroutine a floating point value (real) of 8 bytes precision. I have read here that the modern way to do it would be: ...
I have the following test function: And the following module which encapsulates the call with a Fortran subroutine using iso c bindings: The way ...
f2py works fine for regular Fortran (free form) subroutines and functions. But fails to compile recursive functions or subroutines test.f90: comma ...
I am experimenting with using f2py to encapsulate C code. As a first test I have prepared two very basic C source files: module1.c module2.c I ...
I'm trying to use a f2py compiled function into a python function decorated with the @njit decorator from numba. The signature of the function wrapped ...
It is stated in a lot of places that F2PY does not "support derived types", however, it is unclear to me whether this means that either derived ty ...
I am trying to use f2py to compile a function in fortran90, the function is actually MOPTA08 problem: I use the following command to compile it, an ...
I have a very weird problem when I compile Fortran code using the zgerc subroutine from BLAS. Basically, this subroutine calculate the outer product o ...
I have some Fortran code which contains calls to Lapack and Blas functions that I am trying to compile using f2py with: Windows 10 Numpy version ...
We are publishing binry wheels for a python package on PyPi. The package has a Fortran extension which we produce with f2py. Our problem is that the ...
I would like to import an Fortran module into python with f2py. I successfully compiled the module with the command f2py -c primes.f90 -m primes. Th ...
I want to compute expressions such as exp(At)v, where A is a complex, scipy.sparse.csr matrix, t is a real number and v is a numpy one-dimensional arr ...