Category : numpy-ndarray

I’m making an interface between Python and Fortran code with Cython. One part of that is retrieving arrays of strings. In Fortran, character(len=3) :: str_array(:) For the sake of this example, suppose str_array contains the following allocate(str_array(2)) str_array = [‘abc’,’def’] My approach is to return this to Cython as a single C char array. I ..

Read more