Python-to-Fortran Code Translation -- 2
Budget: $10 – $30 USD
I have a mature Python codebase—well over 500 lines—that performs scientific computation with heavy use of NumPy and SciPy for array operations, linear algebra, and numerical routines. I need a clean, function-for-function Fortran translation that matches the current behavior and accuracy.
Here is what I’m looking for:
• A readable Fortran 90/95 (or newer) implementation that mirrors the existing module structure and logic.
• Replacement of NumPy/SciPy calls with native or well-established Fortran libraries (e.g., LAPACK, BLAS) while preserving performance.
• Clear in-code comments explaining any algorithmic changes and the mapping from Python constructs to Fortran equivalents.
• A simple makefile or CMake configuration plus compilation instructions that work on Linux and macOS.
• A brief verification script or test case set showing that the Fortran results numerically agree with the original Python output.
I will provide the full Python source and sample data as soon as we start. Feel free to suggest optimizations, but the first milestone is a faithful, compilable translation.
Here is what I’m looking for:
• A readable Fortran 90/95 (or newer) implementation that mirrors the existing module structure and logic.
• Replacement of NumPy/SciPy calls with native or well-established Fortran libraries (e.g., LAPACK, BLAS) while preserving performance.
• Clear in-code comments explaining any algorithmic changes and the mapping from Python constructs to Fortran equivalents.
• A simple makefile or CMake configuration plus compilation instructions that work on Linux and macOS.
• A brief verification script or test case set showing that the Fortran results numerically agree with the original Python output.
I will provide the full Python source and sample data as soon as we start. Feel free to suggest optimizations, but the first milestone is a faithful, compilable translation.