kuwisdelu / matter

Out-of-core statistical computing and signal processing
http://www.cardinalmsi.org
54 stars 4 forks source link

matter::sparse_mat path #17

Closed MatthewOGoodman closed 4 months ago

MatthewOGoodman commented 4 months ago

I am probably missing something, but I could not find a way to add the path to the constructor for matter::sparse_mat. Can you let me know how this is done?

And, thanks so much for the great work on this package!

kuwisdelu commented 4 months ago

For sparse_mat, the paths are not provided directly to the constructor, because it can be either in-memory of out-of-memory. If using out-of-memory data in a sparse matrix, you would first construct either matter_vec (if passing a pointers array) or matter_list (if not passing a pointers array) and then pass these as the index and data arguments to sparse_mat().