The Docs show the following:
double *existingArray = (double*)malloc(sizeof(double)*10); jl_array_t *x = jl_ptr_to_array_1d(array_type, existingArray, 10, 0);
I thought I could use
jl_value_t** instead of
double* in this case, but when giving this array to a julia function, I just get random values as the elements (probably because it is interpreting the type information).
But how then, would you manage an
Any in Julia if there is no type information on each element? Do I need a different approach or is this something that is just not implemented?
Thanks for the help!