Message Boards Message Boards

WSTP : function name as argument

Posted 9 years ago

I have development my own NDSolve function in C language:

void MyNDSolve ( void odefun (), double *u, double xmin, double xmax)
{
 ...........
}

where Odefun is name of a function coded in C.

I want to be call it from Mathematica. But how can I specify a function name as argument in the WSTP template ?

:Begin:
:Function:        MyNDSolve
:Pattern:          MyNDSolve[ ??, u_List, xmin_Real, xmax_Real]
:Arguments:     {odefun, u, xmin,xmax}
:ArgumentTypes:   {??, RealList, Real, Real}
:ReturnType:    Manual
:End:

Someone can help me ?

Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract