I’ve mostly refactored the FITPACK library to modern Fortran standards, and added a simple object-oriented interface: I’m happy to share the code here:
It seems like FITPACK is the library most scientific packages (scipy, Julia) still wrap against for curve fitting purposes. It’s very robust and very flexible, so hopefully even its modern Fortran interface will get better over time. So far:
- Code refactored to free-form
- Real precision generalised
- All variables and subroutines made explicit
- Removed all old-style same-continuation double loop constructs
- Some operations replaced with
matmul
,dot_product
intrinsics - A simple object oriented interface is made
- No external dependencies