MATLAB Coder seems to be fancy and can speed up MATLAB code much by converting the code into C/C++ or MEX.. But it seems that it does not support sparse matrix, or the matlab function sparse
which is essential to my code. Does anyone have any idea about how to overcome this problem? Many thanks!
Take the 2-minute tour
×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.
|
|||||||||||||
|
The eigen library can be used to handle the Matlab function sparse and it is in c language. As said by "libill", You could also just generate MEX code for the portions of your MATLAB code which doesn't use sparse to speed those portions up. And for sparse part use above library. |
|||
|