[ExM Users] Passing two dimensional numerical arrays to leaf functions

Ozik, Jonathan jozik at anl.gov
Mon Sep 22 22:20:54 CDT 2014


Thank you Justin. That should work great.

Jonathan

On Sep 22, 2014, at 8:05 PM, Justin M Wozniak <wozniak at mcs.anl.gov> wrote:

> Hi
>    You can do this based on the instructions for C binary data:
> 
> http://swift-lang.org/Swift-T/leaf.html#_complete_example_3_c_function_with_binary_data
> 
> The Swift blob is a void* - you can cast to whatever you want.  You can cast it to a double* that is actually a 2D array (following BLAS conventions).
> 
>    Justin
> 
> On 9/22/2014 6:32 PM, Ozik, Jonathan wrote:
>> Hello all,
>> 
>> I’m curious about how people generally go about passing (and returning) two (or n-) dimensional arrays to leaf functions. Are there simple examples using SWIG and Tcl? Or are file based approaches used via app fuctions?
>> 
>> Any thoughts would be appreciated,
>> 
>> Jonathan
>> 
>> 
>> 
>> _______________________________________________
>> ExM-user mailing list
>> ExM-user at lists.mcs.anl.gov
>> https://lists.mcs.anl.gov/mailman/listinfo/exm-user
> 
> -- 
> Justin M Wozniak
> 



More information about the ExM-user mailing list