Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

multi-dimensional Sparse Matrix Compression

Tags:

c++

c

indexing

Can anybody suggest a good C++ library for storing Multi-dimensional Sparse Matrix that focuses on the compression of data in matrix. The number of dimensions of the matrix will be huge (say, 80 dimensions). Any help is most welcome :).

EDIT:
The matrix is highly sparse, in the order of 0.0000001 (or) 1x10-6.

like image 304
Prabhakaran Avatar asked Nov 13 '22 09:11

Prabhakaran


1 Answers

In c# I have used key value pairs or "dictionaries" to store sparse populated arrays. I think for 80 dimensions you would have to construct a string based key. Use a single function to create the key it should all remain consistent. Simply concatenate a comma separated list of the dimensions. Unfortunately I'm not aware of a good key pair, dictionary library for c++. Possibly STL if you have used it before but I would not recommend it otherwise.

like image 153
William J Bagshaw Avatar answered Nov 14 '22 23:11

William J Bagshaw