Editing Fortran
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
This page describes an example of how to call liboctave functions from a Fortran program. | This page describes an example of how to call liboctave functions from a Fortran program. | ||
In the example we will load a | In the example we will load an Octave array from a file in Octave's native ASCII format, | ||
it consists of two steps: | |||
* write a C++ function with a C compatible interface and C linkage that reads a variable from an Octave ASCII file | |||
* write Fortran code using the "iso_c_binding" intrinsic module to call the C++ function | |||
=== C++ function === | === C++ function === |