Sparse matrix: Difference between revisions

Content deleted Content added
Compressed sparse row (CSR, CRS or Yale format): ROW_INDEX vector of the first example was wrong. It must have a length of num_rows+1, with the last element being the (total) number of nonzero values in the matrix.
Line 64:
V = [ 5 8 3 6 ]
COL_INDEX = [ 0 1 2 1 ]
ROW_INDEX = [ 0 1 2 3 4 ]
assuming a zero-indexed language.