Compile function handles to mex-files

5 visualizaciones (últimos 30 días)
Cedric
Cedric el 30 de Nov. de 2011
Hi, i need to compile my Matlab code to C/C++ but Matlab does not allow to compile a handover of a function handle to another function.
for example
h = @loss;
x = anneal(h, p);
It also does not allow to compile ODE-Solvers. Is there any solution to avoid this problem, specially for the ODE-Solver?
thanks for help Cedric

Respuesta aceptada

Friedrich
Friedrich el 30 de Nov. de 2011
Hi,
ODE sovlers can't be translated to C/C++. All functions which are supported for code gen can be found here:
For code gen from function handles see here:

Más respuestas (0)

Categorías

Más información sobre Numerical Integration and Differential Equations en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by