hmmm, interesting, I completely missed that part: if you don’t mind, how did you manage to get the error message sent back to you (I couldn’t get anything with try/catch statements)?
So it looks like I need 2 functions to accommodate both cases, one for the call from Python through C (which passes void*
), one for the call from C/C++ (which passes directly Vector/Matrix{Float64}
).
(the array_wrap()
is needed when the ccallable function gets a void*
so that it can reshape to its proper/actual size - and apparently is not necessary for the C/C++ bridge to Julia through jl_call()
)
I’ll give it a try and report back
thanks for the insight