I rooted the input arguments but I'm not able to access the output 
arguments.  If jl_value_t *ret = (jl_array_t*)jl_call(func,args,nargs); 
returns a double matrix and a double scalar, could you show me how to 
access each output argument. If you could point me to some example code, 
that would be helpful.


On Wednesday, January 6, 2016 at 12:00:36 PM UTC+5:30, Shamika wrote:
>
>
>
> I'm using Julia in c++ code. I have a few doubts regarding the jl_call 
> function.The code is 
>
> jl_array_t *ret = (jl_array_t*)jl_call(func,args,nargs);
>
> 1. Can args contain both scalar/array values? Does it use zero based or 
> one based indexing?
> 2. Is there any data type that can hold both scalar/array output that is 
> returned by jl_call? Right now, I have to define the output as jl_value_t 
> or jl_array_t. Is there something more generic?
>
> Thanks,
> Shamika
>

Reply via email to