Sparse Matrix
Store only the non-zero cells as (row, col, value) triplets to save space.
Matrix
6
3
2
3
5
2
6
1
9
A matrix is an array of arrays — laid out row-major in one contiguous block of memory.
Store only the non-zero cells as (row, col, value) triplets to save space.
A matrix is an array of arrays — laid out row-major in one contiguous block of memory.