Get the latest tech news
Sparse Matrix Library with Compressed Row Storage
C++ implementation of sparse matrix using CRS (Compressed Row Storage) format - uestla/Sparse-Matrix
SparseMatrix comes as a template class, so we have to specify the element type. Number of columns in the matrix has to be the same as the size of the vector, otherwise InvalidDimensionsException is thrown. Note that output operator must be implemented for the element type as well.
Or read this on Hacker News