Hello,
I have to pass a Julia function to C. The C function has one input argument: a double*
.
For example
function myfun(x)
return sum(x)
end
What is the way? Is it that:
myfun_c = @cfunction(myfun, Cdouble, (Ref{Ptr{Cdouble}}, ))
?
Thank you.