Fortran comparison Re: [SciPy-dev] scipy.weave versus simple C++.

Prabhu Ramachandran prabhu at
Sun Jan 13 23:58:19 CST 2002

>>>>> "PP" == Pearu Peterson <pearu at> writes:

    PP> I am currently reconsidering the Fortran/C array issues. It is
    PP> looking promising what I have worked out: u[i,j] in Python and
    PP> u(i,j) in Fortran will be the same. And one will not need to
    PP> think about how matrices are stored in memory, as a first
    PP> instance at least. However, if you are aware about the fact
    PP> that Fortran and C arrays have different storage orders, then
    PP> you can be clever by creating arrays with a proper storage
    PP> order that will be good for performance. The approach will be
    PP> similar to the one in Pyfort but I think it can be more
    PP> efficient.

    PP> Let me say that with this new approach there will be no
    PP> performance hit compared to the current f2py approach. Just
    PP> the appearance of Fortran and C multidimensional arrays in
    PP> Python will be unified and that is a very important step as
    PP> then matrices in mathematical sense will coincide.

Sounds great!  Unfortunately I dont have much experience at all with
the internals of Numeric or its C API. 

Good luck!

More information about the Scipy-dev mailing list