I need to use a math package which is entirely written in Fortran. The package is not in a single file but is compiled into an archive file (.a file).
I have the full source code. I don't know Fortran.
I did a quick read on f2py document here:
http://docs.scipy.org/doc/numpy-dev/f2py/
It just doesn't work for me. Are there any better documentation or guide for such problem?
EDIT
As requested in comments. I am not sure if I get it correctly (I don't know Fortran), there is some function that probably useful for me:
SUBROUTINE QP_initialize( data, control, inform )
TYPE ( QP_data_type ), INTENT( INOUT ) :: data
TYPE ( QP_control_type ), INTENT( OUT ) :: control
TYPE ( QP_inform_type ), INTENT( OUT ) :: inform
SUBROUTINE QP_solve( prob, data, control, inform, C_stat, B_stat )
TYPE ( QPT_problem_type ), INTENT( INOUT ) :: prob
TYPE ( QP_data_type ), INTENT( INOUT ) :: data
TYPE ( QP_control_type ), INTENT( IN ) :: control
TYPE ( QP_inform_type ), INTENT( OUT ) :: inform
INTEGER, INTENT( OUT ), OPTIONAL, DIMENSION( prob%m ) :: C_stat
INTEGER, INTENT( OUT ), OPTIONAL, DIMENSION( prob%n ) :: B_stat