call fortran with integer arrays

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

call fortran with integer arrays

Muhali
I have a fortran function that is slightly different from this example

https://www.gnu.org/software/octave/doc/interpreter/Calling-External-Code-from-Oct_002dFiles.html

In my case n is an integer array instead of a simple integer. - I guess I need the equivalent for the double array a, as here:

   NDArray a = args(0).array_value ();
   double *av = a.fortran_vec ();

How do I do this?

M.