349
edits
(Example of writing F2003 Code linking to Octave) |
No edit summary |
||
Line 2: | Line 2: | ||
In the example we will load an Octave array from a file in Octave's native ASCII format, | In the example we will load an Octave array from a file in Octave's native ASCII format, | ||
it consists of two steps: | 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 === |
edits