Compressed sparse row format stores a sparse matrix using arrays of nonzero values, their column indices, and an array of row offsets. For zero-based row , its entries occupy positions from through .
For , one representation is , , . Equal adjacent offsets encode an empty row. This permits matrix-vector product in time without storing zeros. Whether columns are sorted or duplicates are permitted is an implementation convention.

Articles by others on the same topic (0)

There are currently no matching articles.