jonathf / matlab2cpp

Convertion program from Matlab to C++ using Armadillo
BSD 3-Clause "New" or "Revised" License
181 stars 64 forks source link

Feature Request: mex function generation #104

Open davidakelley opened 7 years ago

davidakelley commented 7 years ago

I'm interested in using this for speeding up existing Matlab code that I have been translating by hand. With all the work that's been put in already, an option to create a .cpp file that could be compile to a .mex* function doesn't seem that hard. It'd also make it quite a bit easier to test that the conversion was successful even if the desired output is the C++ code for inclusion in non-Matlab projects.

Has this been explored? Is there something about the mex specification that's more difficult than it seems to me?