Luke wrote:
> I have a C++ function like this:
>
> void constraint(double& x, double& dxdt)
> {
>   dxdt[0] = ...
>   dxdt[1] = ...
> ....
>    dxdt[n] = ...
> }
>
> How would I properly wrap this function in the .pyx file?  And how
> would calling it in Python work? 
I think you can just say

cdef extern from "constraint.h":
    void constraint(double x, double dxdt)

as the generated C++ should be identical.

S.M.


_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to