I have a Matlab function which I need to 1) Speed up 2) Generate derivatives of the function by means of Automatic Differentiation (AD).
The speed up part I have accomplished by using Matlab Coder to generate C code and a mex function. Now I am looking for an AD tool which out of the box (or with minor code modifications) can be used for this auto generated C code. It seems to be a lot of C/C++ AD tools out there, see C/C++ AD tools, and I have tested a couple for this purpose:
- Tapenade: did not work well with the Matlab Coder generated files
- ADOL-C: Need to rewrite the C functions to some specific data types (I think many of the tools has such requirements)
Does anyone have some experience using such tools for Matlab Coder generated code?
PS. The AD tool should work on Windows.