You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @mannickutd, thank you for opening the issue. Indeed, dealing with sparse matrices is something I missed.
For the moment, you can read any variable (even sparse ones) with the read method. The output is a Variable, that is basically an interface to a matvar_t variable. You can get this underline variable with the toMatio method and then use its interface (see https://github.com/tbeu/matio/blob/master/src/matio.h) to access the data. Clearly, this would force you to use the C interface instead.
For a long-term solution instead, it would be better to have a proper C++ interface. This is currently missing. The implementation shares similar difficulties as those needed to deal with complex variables (see #5), so this could take some time.
Is there an example of how to read in a sparse matrix stored in a .mat file?
The text was updated successfully, but these errors were encountered: