Sparse matrix: Difference between revisions

Content deleted Content added
made the definition of COL_INDEX explicit.
Corrected row_index on 4x6 matrix example
Tags: Reverted possible vandalism
Line 87:
V = [ 10 20 30 40 50 60 70 80 ]
COL_INDEX = [ 0 1 1 3 2 3 4 5 ]
ROW_INDEX = [ 0 20 41 71 82 2 2 3]
 
The whole is stored as 21 entries: 8 in {{math|V}}, 8 in {{math|COL_INDEX}}, and 5 in {{math|ROW_INDEX}}.