Compressed sparse storage keeps a sparse matrix as numerical nonzero values, their row or column indices, and pointers to the start of each compressed column or row. It avoids allocating all entries. A sparse direct solver must additionally allocate possible fill-in predicted by symbolic factorization, because elimination can create entries absent from the input.
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
There are currently no matching articles.