A sparse matrix is a matrix that has few entries per row. Typically, for a matrix of size , the number of non-zero entries per row is .
How can we take advantage of the many zeros present in a sparse matrix?
Matrix-vector products with a sparse matrix can be computationally very efficient:
Denote by . We have
- We can skip all the entries where .
- Then, the computational cost and memory are proportional to the number of non-zero entries in .
LU, QR, upper Hessenberg form, QR iteration- None of these methods are applicable anymore. We need a different kind of approach.
- This leads to iterative methods.
- They are less accurate and converge more slowly than methods from the previous section, but this is the only option when becomes very large.