Re: [julia-users] Embedding Julia in C++ - Determining returned array types

2016-10-19 Thread Kyle Kotowick
tly: > > array_type == jl_int64_type > > Or use the exported API only (jlapi.c): > > strcmp(jl_typename_str(array_type), jl_typename_str(jl_int64_type)) > > On Tue, Oct 18, 2016 at 7:52 PM, Kyle Kotowick <ky...@kotowick.ca > > wrote: > >> I apologize for t

Re: [julia-users] Embedding Julia in C++ - Determining returned array types

2016-10-18 Thread Kyle Kotowick
(array_type, jl_float64_type)) { double *data = (double*) jl_array_data(ret_array); } And the issue is that even if it is an Int64 or Float64, neither of those IF statements will return true. On Sunday, 16 October 2016 21:36:03 UTC-4, Kyle Kotowick wrote: > > Awesome, thanks. Could you sh

[julia-users] Embedding Julia in C++ - Determining returned array types

2016-10-14 Thread Kyle Kotowick
I'm trying to embed Julia code in a C++ app I'm building. I have it all working and can do some basic calls, all good so far. One thing I'm struggling with, though, is determining what type of array is returned by a Julia evaluation. The only available documentation seems to be this page