I want to pass a sparse matrix to a shared library from MATLAB, do some operation there (written in C), and then return it.
I can pass a dense matrix and use, pretty easy. But, I have no idea how to pass a sparse matrix to a shared library from MATLAB. What I've found are all concerned about MEX.
It is appreciated if give some information about sparse matrix format in MATLAB and the conversion in C.
Thanks in advance.