Feature #826
Sparse matrices
Description
Mario now thinks he wants sparse matrices.
We need a clear description of the requirements.
History
#1 Updated by John Abbott over 8 years ago
I had a quick look on Wikipedia for information about sparse matrices. There they distinguished between representations which are convenient for input, and representations which are convenient for computing (presumably matrix*matrix products).
The main representations for computing are "compressed row storage" and "compressed column storage"; one is just the transpose of the other. Here is a quick summary of "compressed row storage". The repr comprises 3 lists/arrays/vectors:- VAL: array of non-zero values in the matrix
- COL: array of the col indexes of those values
- ROW1: array of first indexes into VAL, k-th entry is index of 1st entry in VAL which comes from row k