ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Tue, 19 Nov 2013 11:26:15 +0100call FORTRAN in SAGE (openSuSE 12.3)https://ask.sagemath.org/question/10754/call-fortran-in-sage-opensuse-123/I want to call files written in FORTRAN, because several powerful matrix computation packages are only available in FORTRAN.
----------
I have found two websites:
> From the notebook the magic %fortran will automatically compile any fortran code in a cell and all the subroutines will become callable functions (though the names will be converted to lowercase.) [magic %fortran](http://www.sagemath.org/doc/numerical_sage/f2py.html)
> F2PY is now part of NumPy. All the development and maintenance of F2PY is carried out under NumPy SVN tree. See F2PY for more information. If you need F2PY with Numeric or Numarray array support then you must use the F2PY version found below. [F2PY](http://cens.ioc.ee/projects/f2py2e/)
However,
sage: %fortran
ERROR: Line magic function `%fortran` not found.
----------
Should I install any additional package?
Ops, perhaps I should have installed FORTRAN Compiler firstly...
Shown in YaST (openSuSE 12.3),
gcc-fortran, gcc47-fortran, gdb, libgfortran3, libquropdate1, libquadmath0
are installed.
Thanks in advance!gundamlhTue, 19 Nov 2013 11:26:15 +0100https://ask.sagemath.org/question/10754/