Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Linear Algebra Library for Sparse Matrices [closed]

I am interested in porting my Matlab implementation to C++ for speed improvement. I tried armadillo. It is perfect for porting code from Matlab because Armadillo's library functions names/syntax is very close to that of Matlab programming. However I realized that at some places Matlab out performed armadillo because my data is mainly sparse and armadillo does not give it any special treatment and simply treats it as dense matrices. Armadillo team is working on sparse matrices support but currently it is not available. So I am looking for a library which like Armadillo has syntax very close to Matlab (or is easy to use) and supports sparse matrices for speed and space optimization.

like image 453
Haider Avatar asked Jul 05 '12 08:07

Haider


2 Answers

Not sure what you are trying to do but try SPAMS. it's a good and fast sparse modeling implementation.

like image 167
Mercury Avatar answered Oct 13 '22 00:10

Mercury


Version 3.6.2 has more Sparse Matrices support.

like image 43
Alessandro L. Avatar answered Oct 12 '22 23:10

Alessandro L.