call FORTRAN in SAGE (openSuSE 12.3)

asked 2013-11-19 04:26:15 -0600

gundamlh gravatar image

updated 2013-11-19 06:49:32 -0600

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

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


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!

edit retag flag offensive close merge delete