[Numpy-discussion] f2py

Sturla Molden sturla at molden.no
Mon Jan 22 06:18:49 EST 2007

I have a question regarding f2py:

Can it map NumPy arrays to Fortran 95 'dope vectors'?

I can find many examples on interfacing Fortran 77 with NumPy, but not
Fortran 95. This is of course very different as Fortran 77 are always
contiguous, whereas Fortran 95 arrays are not. Thus a Fortran 95 compiler
will pass a pointer to a struct referred to as a 'dope vector', which by
the way is very similar to a NumPy ndarray. But the ABI for a 'dope
vector' is implementation (compiler) dependent. So what does f2py do? Can
it use Charm?

Sturla Molden

More information about the NumPy-Discussion mailing list