Hi all,
I'm using CasADi c-code generation functions in the Matlab interface and they works quite well.
The default output of a CasADi generated mex function is a sparse matrix. This is good if I use this standalone, however, it's not so conveninent if I want to link with other codes. For example, Lapack supports only full matrices so a frequent transfermation from sparse to full matrices must be performed, if I want to use Lapack to solve some linear systems. This is also a problem when I want to use Matlab Coder, which does not support sparse data.
Is it possible to get a full matrix (in this case, a double array) from CasADi generated mex function?
If not, can anyone give me a suggestion how to overcome the problems I mentioned?
Thanks in advance,
Yutao